• Resolved wos2021

    (@wos2021)


    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)
  • Plugin Support qtwrk

    (@qtwrk)

    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

    (@wos2021)

    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

    (@qtwrk)

    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

    (@wos2021)

    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

    (@qtwrk)

    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 3 years, 2 months ago by qtwrk.
    Thread Starter wos2021

    (@wos2021)

    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

    (@qtwrk)

    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

    (@wos2021)

    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

    (@qtwrk)

    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

    (@wos2021)

    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

    (@wos2021)

    Ok I found what I was looking for, to purge cache on a certain time of the day.

    Plugin Support qtwrk

    (@qtwrk)

    Thread Starter wos2021

    (@wos2021)

    Thank you!

    • This reply was modified 3 years, 2 months ago by wos2021.
    Thread Starter wos2021

    (@wos2021)

    I now tried this and it didn’t work.
    I had to purge all manually. Now what?

    Plugin Support qtwrk

    (@qtwrk)

    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)
  • The topic ‘Disable cache for a plugin’ is closed to new replies.