Hello!
I used cache info plugin with nginx+apache on my sites initially and it gave me useful details. So I increased WP memory limit to 68M or 128M, OPcache memory consumption to 128M or 256M, installed memcached. And everything was clear for me.
But then I switched my sites to nginx+php-fpm configuration because apache was slow and real bottleneck.
Now in cache info plugin I see WP memory usage double to 256M and more, OPcache usage is always 100% with hitrate no more than 15%. I increased OPcache memory consumption to 512M (that was not enough), then to 1024M, then to 2048M but nothing changed. OPcache usage is always 100% with hitrate 10 -15% no more. And I see that memcached and OPcache details (items, hits, misses) in plugin are common on all the sites so as they use one common shared cache memory buffer.
Seems strange to me but maybe that’s all right.
The question is if I have 10 sites on my VDS and when on apache they used near 150M opcache each with hitrate near 90%, should I now increase OPcache memory consumption to 20000M to see opcache usage less than 100% and hitrate 80% or more?
Regards, Alex
]]>Hello,
While working on the?Easy Form Builder plugin, I encountered challenges with page caching. To resolve these issues, we use the following function to manage the interaction between Easy Form Builder and other page caching plugins.
public function cache_cleaner_Efb($page_id,$plugins){
$page_id = intval($page_id);
$cache_plugins = json_decode($plugins);
foreach($cache_plugins as $plugin){
switch($plugin->slug){
case 'litespeed-cache':
if (defined('LSCWP_V') || defined('LSCWP_BASENAME' )) do_action( 'litespeed_purge_post', $page_id );
break;
case 'wp-rocket':
if (function_exists('rocket_clean_post')) $r = rocket_clean_post($page_id);
break;
.
.
.
}
}
}
However, we’re seeking a more integrated solution. Specifically, we’re looking for a structure or method similar to what other plugins use to manage caching effectively.
Thank you in advance for your help and insights!
Best regards
]]>First at all, thank you for your useful and lightweight plugin.
With Opcache JIT enabled in php.ini, when I open your plugin page in the wp-admin, I get a critical error that appears in the JIT section.
PHP 8.2, log:
[21-Aug-2024 11:10:01 UTC] PHP Warning: Undefined variable $tools in /wp-content/plugins/atec-cache-info/includes/atec-JIT-info.php on line 9
[21-Aug-2024 11:10:01 UTC] PHP Fatal error: Uncaught Error: Call to a member function pieBg() on null in /wp-content/plugins/atec-cache-info/includes/atec-JIT-info.php:9
Stack trace:
#0 /wp-content/plugins/atec-cache-info/includes/atec-cache-info-dashboard.php(131): ATEC_JIT_info->__construct()
#1 /wp-content/plugins/atec-cache-info/includes/atec-cache-info-dashboard.php(204): ATEC_wpci_results->__construct()
#2 /wp-content/plugins/atec-cache-info/includes/atec-wpci-install.php(20): require_once('/homepages/33/d...')
#3 /wp-includes/class-wp-hook.php(308): atec_wpci()
#4 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#5 /wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /wp-admin/admin.php(259): do_action()
#7 {main}
thrown in /wp-content/plugins/atec-cache-info/includes/atec-JIT-info.php on line 9
With Opcache disabled in php.ini, no errors.
Thank you.
on page=atec_wpsi&nav=php.ini&_wpnonce=111
page=atec_wpsi&nav=php.ini
nav=.htaccess
]]>I get a php warning on my shared hosting:
PHP Warning: Undefined array key “REQUEST_SCHEME” in /path/wp-content/plugins/atec-cache-info/includes/atec-cache-info-results.php on line 52
I don’t get this warnung on my other shared hosting.
I have noticed that not all $_SERVER variables are available at every installation.
There is an invalid link in includes/atec-footer.php
:
echo '<p style="font-size:100%; margin-bottom:0;">Please consider <a target="_blank">donating</a> via <img style="height:14px;" src="../wp-content/plugins/atec-cache-apcu/assets/img/paypal.svg">.</p>';
atec-cache-apcu
is from the other plugin.
Hi Chris, tried to send email via contact page. Please note that your plugins kill the WooCommerce Product Data Metabox ??
]]>