Skip to content

Commit

Permalink
possible cache fix on option update
Browse files Browse the repository at this point in the history
  • Loading branch information
geckod22 committed Nov 6, 2024
1 parent 37cddfe commit 91a1fca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/Performance.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ public function onCacheLevelChange( $cacheLevel ) {
*/
$responseHeaderManager = $this->container->get( 'responseHeaderManager' );
$responseHeaderManager->addHeader( 'X-Newfold-Cache-Level', absint( $cacheLevel ) );


Browser::maybeAddRules( $cacheLevel );
File::maybeAddRules( $cacheLevel );
Skip404::maybeAddRules( $cacheLevel );

// Remove the old option from EPC, if it exists
if ( $this->container->get( 'hasMustUsePlugin' ) && absint( get_option( 'endurance_cache_level', 0 ) ) ) {
update_option( 'endurance_cache_level', 0 );
Expand Down

0 comments on commit 91a1fca

Please sign in to comment.