• Resolved sallymoos

    (@sallymoos)


    Hi,

    I noticed on a few sites (running LiteSpeed Cache) that the site’s design was mashed-up after an automatic WordPress update. Purging all LiteSpeed caches solved the problem.

    Is there anyway to have LiteSpeed Cache automatically purge all caches each time there’s a WP update?

    Sal.

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

    (@qtwrk)

    Hi,

    by design it should auto-purge all when update plugin/theme/wp

    you can add this into your theme functions.php

    add_action( 'upgrader_process_complete', 'my_upgrade_function',10, 2);
    function my_upgrade_function( $upgrader_object, $options ) {
      if ( defined(LSCWP_V)) {
      do_action( 'litespeed_purge_all' );
      }
    }

    to force it purge all again , but I don’t think this was the issue

    by automatic update, I assume it’s by cron , may I know how do you initiate the cron/upgrade task ?

    Best regards,

    Thread Starter sallymoos

    (@sallymoos)

    Hi @qtwrk,

    Thanks for your reply.

    >may I know how do you initiate the cron/upgrade task ?

    It was an automatic background WP update from 5.8 -> 5.8.1 by cron (using MainWp – https://kb.mainwp.com/docs/auto-update-wordpress-core/)

    fyi, I had several other sites running LiteSpeed cache update at the same time and there was no problem with these. Maybe this was just a one-off.

    Sal.

    Plugin Support qtwrk

    (@qtwrk)

    hmmmm , there was an issue on v4.3 that has a potential bug to lead to style mess up ,maybe related to that

    also please check in plugin setting -> cache -> purge -> make sure serve stale is set to OFF

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clear all caches after a WordPress update?’ is closed to new replies.