• Resolved rifatspir

    (@rifatspir)


    I have tried this method to exclude any page. But it’s not working. Is there any other way to exclude ?

    add_filter('autoptimize_filter_noptimize','my_ao_noptimize',10,0);
    function my_ao_noptimize() {
      if (strpos($_SERVER['REQUEST_URI'],'no-autoptimize-now')!==false) {
        return true;
      } else {
        return false;
      }
    }
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    yeah, download Autoptimize 2.9 beta, install it instead of 2.8.4, enable the new Misc Option “Enable configuration per post/ page?” and then go to the page edit screen to disable AO entirely or disable JS optimization or CSS optimization or CSS deferring or lazyload;

    Thread Starter rifatspir

    (@rifatspir)

    @optimizingmatters from where I can download beta versions? I cant find it in WordPress ADVANCED OPTIONS >> PREVIOUS VERSIONS

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah my bad, forgot to add the URL, here you go;
    https://github.com/futtta/autoptimize/archive/beta.zip

    Thread Starter rifatspir

    (@rifatspir)

    @optimizingmatters

    Thanks for your fast reply.

    I did that in beta version but looks like its not excluding the pages. I have set my products widget products list “Order by >> Random”.

    Its show the same products, don’t show randomly. I have used wp rocket and siteground they work good as expected if the excluded that page from settings. Shows new products each time I refresh the page.

    Can you help?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Well, AO does not do page caching, so not 100% sure this is related to AO really, but can you share the page’s URL so I can have a look?

    Related Question:

    I have a very large website with ecommerce capability. If I enable the AO on ONLY single blog post will the static cached JS and CSS include assets from other pages when someone accesses those page? cached JS and CSS include assets from single blog post?

    The reason I am asking is because once the JS static cache becomes quite large with scripts that are not relevant to the single blog pages and it fails google’s speed metrics.

    Ideally it would be awesome to create optimization group that can include different post/page types so the static cache is served per grouping. So I can has a static JS/CSS File for single post type and another one for Woocommerce product page and other one for general pages.

    I will be glad to do a beta test for you for this…I have a staging site that replicated full functionality of my main site.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO caches JS/ CSS per request jaypx, so on a given blog post it will only include the CSS/ JS found in the HTML response of that specific post.

    So when multiple users are trying to access with website it generate multiple cached files on the fly based on the URL?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    “multiple users” is not in the mix, “multiple pages” is, but ideally -if the optimized CSS or JS is identical between pages- this results in the re-use of existing cached files.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Exclude Pages from Autoptimize’ is closed to new replies.