Title: Disable cache for a plugin
Last modified: July 30, 2021

---

# Disable cache for a plugin

 *  Resolved [wos2021](https://wordpress.org/support/users/wos2021/)
 * (@wos2021)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/)
 * Hi,
 * I have a client that has Woocommerce installed and uses a plugin to enabled products
   certain time of the day. Is it possible to disable the cache for a certain plugin?
   
   The site uses food products, so there for it has a category for the products 
   being disabled. Plugin being used to enable/disable is WPC Product Timer for 
   WooCommerce.
 * The problem is that I need to purge the cache for the products to be enabled 
   and disabled and it´s kind of annoying.
 * How can I solve this ?
 * Thanks in advance!

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/disable-cache-for-a-plugin/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/disable-cache-for-a-plugin/page/2/?output_format=md)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14721235)
 * Hi,
 * please contact your product plugin , and kindly ask them if there is any action
   we can use to send purge all.
 * e.g.
 *     ```
       add_action( 'action_name', 'lscwp_purge' );
       function lscwp_purge(){
         if ( defined('LSCWP_V') ) {
           do_action( 'litespeed_purge_all' );
       	}
       }
       ```
   
 * once you got the action name , replace `action_name` in first line ,and then 
   put the final code into your theme’s functions.php
 * Best regards,
 *  Thread Starter [wos2021](https://wordpress.org/support/users/wos2021/)
 * (@wos2021)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14723704)
 * As I’m waiting for plugin creator to reply on what you wrote I have excluded 
   some URI:s but it still caches them and doesn’t work it seems. I still must manually
   purge cache. Why doesn’t URI exclusion work?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14724645)
 * Hi,
 * it should work , please check the HTTP response header on the pages you excluded,
   you should see `x-litespeed-cache-control: no-cache`
 * Best regards,
 *  Thread Starter [wos2021](https://wordpress.org/support/users/wos2021/)
 * (@wos2021)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14730490)
 * Ok so I can see the HTTP response saying x-litespeed-cache-control: no-cache 
   on the URI:s I put in.
 * So this should be able to solve my problem above?
    Or does the plugin maker still
   need to do the changes like you wrote on your other reply?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14730541)
 * this means the page itself is not cached , if you still have issue, it might 
   be caused by something else instead of being cached
    -  This reply was modified 4 years, 10 months ago by [qtwrk](https://wordpress.org/support/users/qtwrk/).
 *  Thread Starter [wos2021](https://wordpress.org/support/users/wos2021/)
 * (@wos2021)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14733461)
 * It´s not being cached but it still doesn´t work.
    The plugin maker is wondering:
   How can Litespeed cacheplugin be installed if one doesn´t have Litespeed web 
   server ?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14738890)
 * Hi,
 * the plugin itself is purely PHP script , it can be installed on any PHP-comapabitle
   server , either LiteSpeed, or Apache , or even IIS on windows
 * you can try reset to default setting first, see if it helps
 * Best regards,
 *  Thread Starter [wos2021](https://wordpress.org/support/users/wos2021/)
 * (@wos2021)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14740974)
 * Hm they can only see the optimizations for the plugin nothing more.
 * Anyway, is there a way to set the cache to be cleared at a certain time of the
   day?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14743501)
 * Hi,
 * could you please state what is your server environment ?
 * since you asked before, are you using or not using LiteSpeed WebServer , OpenLiteSpeed,
   LiteSpeed ADC or QUIC cloud CDN ?
 * because if you are no using above 4 mentioned LiteSpeed products , the plugin
   will only act as page optimization plugin , but it will NOT actually cache any
   pages.
 * and also please provide the report number , you can get it in toolbox -> report-
   > click “send to LiteSpeed”
 * Best regards,
 *  Thread Starter [wos2021](https://wordpress.org/support/users/wos2021/)
 * (@wos2021)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14747968)
 * The one that was not using a Litespeed server was the plugin creator, I am using
   Litespeed server.
 * Can you please answer if it is possible to clear the cache at a certain time 
   of the day ?
 *  Thread Starter [wos2021](https://wordpress.org/support/users/wos2021/)
 * (@wos2021)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14748002)
 * Ok I found what I was looking for, to purge cache on a certain time of the day.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14750899)
 * this topic would help [https://wordpress.org/support/topic/purge-catch-with-cron-job/](https://wordpress.org/support/topic/purge-catch-with-cron-job/)
 *  Thread Starter [wos2021](https://wordpress.org/support/users/wos2021/)
 * (@wos2021)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14756569)
 * Thank you!
    -  This reply was modified 4 years, 10 months ago by [wos2021](https://wordpress.org/support/users/wos2021/).
 *  Thread Starter [wos2021](https://wordpress.org/support/users/wos2021/)
 * (@wos2021)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14760992)
 * I now tried this and it didn’t work.
    I had to purge all manually. Now what?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/#post-14763182)
 * what and how exactly did you set it up ?
 * and if you manually access the PHP file you created via browser, did it work ?

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/disable-cache-for-a-plugin/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/disable-cache-for-a-plugin/page/2/?output_format=md)

The topic ‘Disable cache for a plugin’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 23 replies
 * 2 participants
 * Last reply from: [wos2021](https://wordpress.org/support/users/wos2021/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/disable-cache-for-a-plugin/page/2/#post-14977536)
 * Status: resolved