HEX
Server:Apache
System:Linux localhost 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64
User:enlugo-es (10006)
PHP:7.4.33
Disabled:opcache_get_status
Upload Files
File: /var/www/vhosts/enlugo.es/httpdocs/wp-content/plugins/w3-total-cache/SystemOpCache_AdminActions.php
<?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 );
		}
	}
}