Intertesting Problem
Your Command (!extension_loaded(‘Zend OPcache’)) called in test.php file is running.
But as command in your Plugin not.
How could this be?
test.php in root
<?
if (!extension_loaded('Zend OPcache')) {
echo '<div class="notice notice-error">
<p>You do not have the Zend OPcache extension loaded, you need to install it to use this plugin flush-opcache.</p>
</div>';
}else {
echo '<p>RIGHT, ZEND OPCache is active!<p>';
}
if (!opcache_get_status()) {
echo '<div class="notice notice-error">
<p>Zend OPcache is loaded but not activated. You need to set opcache.enable=1 in your php.ini flush-opcache.</p>
</div>';
}else {
echo '<p>RIGHT, OPCache is enabled!<p>';
}
?>
gives the answer
RIGHT, ZEND OPCache is active!
RIGHT, OPCache is enabled!
-
This reply was modified 2 years, 8 months ago by
Yui.
-
This reply was modified 2 years, 8 months ago by
Jan Dembowski. Reason: Formatting