• Resolved lordsnake

    (@lordsnake)


    I have a site that breaks every time updates are installed. And I have to go in and manually flush the cache.

    Purge All On Upgrade is enabled, but obviously isn’t working.

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

    (@qtwrk)

    Hi,

    how did you update it ?

    also please try add this to your theme’s 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' );
      }
    }

    see if it helps

    best regards,

    Thread Starter lordsnake

    (@lordsnake)

    I use Managewp to manage my sites and install updates.

    Plugin Support qtwrk

    (@qtwrk)

    yes, I have seen cases like this before where it uses some kind of management plugin and leads to case like this

    have you tried above code snippet ?

    Thread Starter lordsnake

    (@lordsnake)

    isn’t that going to be lost when I update the theme?

    Plugin Support qtwrk

    (@qtwrk)

    you can use child theme for that

    Thread Starter lordsnake

    (@lordsnake)

    this did not help, site still breaking after updates

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘site breaks after updates’ is closed to new replies.