modified file upgrade-temp-backup

This commit is contained in:
2024-04-19 10:59:51 +00:00
committed by Gitium
parent 1a790bdd29
commit 5de19fe451
2762 changed files with 343927 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?php
namespace W3TC;
class SystemOpCache_AdminActions {
function w3tc_opcache_flush() {
$core = Dispatcher::component( 'SystemOpCache_Core' );
$success = $core->flush();
if ( $success ) {
Util_Admin::redirect_with_custom_messages2( array(
'notes' => array( 'OPCache was flushed successfully' )
), true );
} else {
Util_Admin::redirect_with_custom_messages2( array(
'errors' => array( 'Failed to flush OPCache' )
), true );
}
}
}