• Resolved vallesierra7

    (@vallesierra7)


    Hello!

    With this plugin is it possible to disable the cache for a specific plugin?
    It happens that I have a plugin installed on my site that restricts my store according to opening hours, when the store is closed a countdown is displayed that does not work correctly when the cache is active. Would it be possible to exclude this plugin?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    unfortunately that is not possible , the cache unit is per page , so you can only cache or no-cache per page basis

    based on your description, I’d suggest : do a purge cache when store closes/opens

    or use javascript on client-side , to display open or close , this way the server side can maintain its cache

    Thread Starter vallesierra7

    (@vallesierra7)

    I understand.

    1. Could you tell me how I can perform this purge automatically.
    2. About using javascript on the client side to show opening or closing, this is not done by the plugin.
    3. At some point we have disabled certain things with “nonce” could this be done in this case?
    Plugin Support qtwrk

    (@qtwrk)

    if that open/close plugin has hook , you can hook it with do_action( 'litespeed_purge_all' );

    otherwise you can use system cron to call a standalone file with code like

    <?php
    require('./wp-load.php');
    do_action( 'litespeed_purge_all' );

    at your close/open time

    I am not sure what do you mean by/with nonce here..?

    Thread Starter vallesierra7

    (@vallesierra7)

    What I mean is that at some point when I have had problems with other sites you have told me to enter additional code in “ESI Settings”

    The site in question is https://qr.soluciones724.com/laventanacevichera/

    The plugin used is “Store Opening Closing Hours Manager” https://www.ads-software.com/plugins/store-opening-closing-hours-manager/

    Please can you tell me specifically what I could do?
    Thank you in advance.

    Plugin Support qtwrk

    (@qtwrk)

    this doesn’t seem have anything to do with nonce ?

    if you don’t want to use system cron method , then I have no more idea, but I just create topic in that plugin’s forum , see if its dev has any hook for me to use to trigger the cache purge when open/close time is reached

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