• Resolved marcorroma

    (@marcorroma)


    Hi, is it possible to create a cron job that clears the page cache of a single page? I currently use a php function, but I would like to create a cronjob. Thanks

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter marcorroma

    (@marcorroma)

    1-5 minutes of “miss cache” is a problem for me. Because some pages have a very slow loading (5-6 seconds), due to the page builder and the 40 active plugins.
    I hope you take this feature into consideration to always cache all pages that are cleared from the cache for editing.
    No caching plugin has thought about this feature, which is different from the “crawler” which creates a cache of the whole site. And on sites like mine with 50,000 posts it is a slow operation, and in any case the cache for the most visited/updated pages is not always served.

    Thread Starter marcorroma

    (@marcorroma)

    Have there been any updates?
    The php function to remove the cache from some pages, when I perform an action, is no longer valid.
    Even if the Litespeed cache plugin message appears that the cache is cleared:
    https://i.ibb.co/WvFg8L3/43243243243234.jpg

    The function is:

    add_action( 'scp_update_menu_order', 'lscwp_purge_order' );
     function lscwp_purge_order() {
     if ( defined( 'LSCWP_V' ) ) {
     do_action('litespeed_purge_url', 'https://www.mywebsite.com/');
     } } 

    The plugin that does this action hasn’t been updated since many months ago.

    Do you know why it doesn’t work anymore?
    Even if I clear the cache individually for a page it doesn’t work. It only works if I update a post.

    Plugin Support qtwrk

    (@qtwrk)

    yes, like my previous replied said , add my curl code after your purge code , it will curl to cache the page right after you purged it

    Hi,
    What is the frequency you’d advise to purge all cache ?
    What could be the matter if the cron would be executed too often ?
    thanks a lot
    Gil

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Cron job to purge cache’ is closed to new replies.