This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Exclude from JS cache and optimization

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Exclude from JS cache and optimization

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42337
    samuelepellizzarisamuelepellizzari
    Participant

    Dear Sirs,

    I am getting unpredictable behaviour when using Ajax Search Pro with WP Rocket.

    I know you don’t offer support for third-party plugins. However, I would just like to disable Ajax Search Pro from JS optimization. Could you please help me to refer to the specific js files being used by Ajax Search Pro?

    Many thanks,

    Samuele

    #42339
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    The javascript files are generated on the fly depending what search features are enabled on the given page, and if the file system supports it then they are cached and enqueued in a single file.

    The file names are hashed, but if you can exclude directories too, then you can try excluding these:

    /wp-content/cache/asp/
    /wp-content/plugins/ajax-search-pro/js/

    These are the only two sources where the javascript files for the plugin should be originated from. Excluding these directory matches should exclude them from optimization.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.