• Resolved shadmuhammad

    (@shadmuhammad)


    Dear Coder,

    Amazing plugin you have created, have been using it on my site for years.

    Could you please tell me any code snippets to DISABLE PURGE CACHE at all? Not only page publish but setting change.

    I wanna manually purge the cache when users are in lower number.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hello shadmuhammad;
    Sorry for the late(r) reply, I’m afraid I did not see your topic until just now.

    AO does not do page caching and it never purges its own cache, but it does hook into page caches cache being _fully_ purged, which generally does not happen at page publish time.

    But if you want to avoid AO “listening” for page cache purges, you can use this code snippet;

    
    add_filter( 'autoptimize_filter_main_hookpagecachepurge', '__return_false' );

    hope this helps,
    frank

    Thread Starter shadmuhammad

    (@shadmuhammad)

    Dear Sir,

    Even after adding the filter in Function.php, but still after page is published Autoptimize purge the cache.

    Please suggest where I am doing the mistake?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Purge Cache in Autoptimize’ is closed to new replies.