Can’t Enable Validate Timestamps
-
I just starting using your plug-in. I have a VPS with CentOS7, memcached installed in apache, APCu and OPcache installed for PHP 7.4. I believe the techs setup my VPS to run PHP as FCGI.
For some reason, even though OPcache is recognized and selected in the menu for opcode caching, I cannot enable “validate timestamps”. Not sure why. I try to click on the checkbox but nothing happens.
Is there something I need to do server-side to make this work? I don’t want to have to restart PHP if I need to make a simple change to a template.
Thanks
-
Hello @liquidrock
Thank you for reaching out and I am happy to help!
Yes, you are correct. This is only showing the status if the “validate timestamps” is enabled so you cannot enable/disable in the W3TC settings.
Please check more details here.
Thanks!Thanks for the quick reply.
The techs at my host say that validate_timestamps options is turned on, however the plug-in is still saying it’s not enabled. I rebooted the server but there was no change.
I’ve asked them to look deeper, but not sure why it still wouldn’t work if it’s enabled. If you have any info as to why this might not be working, please let me know. I really need opcode caching to be working properly for my project.
It might be good in the UI to make the enabled state look less like a checkbox so it doesn’t seem like we can click on it.
Thanks
Here is the text from php.ini
[Opcache] opcache.enable = 1 opcache.max_accelerated_files = 10000 opcache.validate_timestamps = 1 opcache.memory_consumption = 128Hello @liquidrock
Thank you for the information.
Can you please confirm if you are using PHP-FPM?
Thanks!They said they installed mod_fcgid and changed the PHP handler to FCGI for PHP 7.4.
They also confirmed that they rebooted all systems even before I rebooted the entire server to make sure the changes took effect.
Also, my server is setup to use PHP 7.4 for everything. That’s the only version available regardless of the domain.
Hello @liquidrock
Thank you for the information.
Let me double-check this and I’ll get back to you.
THanks!Any update regarding this?
Hello @liquidrock
Thank you for your patience.
Can you please make a test.php file to see what is reported:<?php print_r( [ 'opcache.enable' => ini_get( 'opcache.enable' ), 'opcache.validate_timestamps' => ini_get( 'opcache.validate_timestamps' ), 'opcache_reset' => function_exists( 'opcache_reset' ), ] );You should get the output:
$ php ~/test/test-opcache.php Array ( [opcache.enable] => 1 [opcache.validate_timestamps] => 1 [opcache_reset] => 1 )We are still testing the variants to see what may be causing the checkbox not to be checked.
Thanks!Sure thing. I’ll let you know what I find. Thanks for the continued help with this.
Here’s the output:
Array ( [opcache.enable] => 1 [opcache.validate_timestamps] => 1 [opcache_reset] => 1 )Hello @liquidrock
Thank you for the information.
Can you please remove the line 33$validate_timestamps = ''in /wp-content/plugins/w3-total-cache/SystemOpCache_GeneralPage_View.php (make a backup first)
Reload the W3 Total Cache dashboard and let me know if the checkbox is enabled?
Thanks!Will do. Can’t access my server right now but will test it as soon as I can.
Also, 1 note: It seems that PHP-FPM is also installed on my server. The techs said that the way it’s configured, the server chooses whether to use FPM or FCGI (whatever is faster for a given task). I tested disabling FPM in case it was conflicting with the plug-in, but it didn’t make any difference.
Will keep you posted on the test.
Hello @liquidrock
Thank you for yoru patience.
This has been fixed in the current release so please make sure to update the plugin and let me know if this helps!
Once again, thank you for your patience and for bringing this to our attention.Yep, it’s checked now.
No problem. Thanks for being on top of this. much appreciated.
-
This reply was modified 4 years, 1 month ago by
liquidRock.
Hello @liquidrock
You are most welcome!
We would really appreciate it if you could take a minute and post a review here. This will help us to continue offering a top-notch product to users.
Thanks! -
This reply was modified 4 years, 1 month ago by
The topic ‘Can’t Enable Validate Timestamps’ is closed to new replies.