bananacy

Member
Mar 26, 2017
7
0
1
depends
cPanel Access Level
Website Owner
Hello,

I just installed Opcache on php5.6. Everything went fine and i installed the opcache Gui.
Everything look good with 100% hit rate

My concern is that it shows millions of hits even after few hours. My wordpress site gets only ~200visit per day. Under File Usage in the GUI I can see the hit files accessed.

For example version.php was accessed 37,178 time.

Apache and domlogs dont show this kind of activity.

any explanation?

I suspected it might be the revalidate freq, so i increased to 300.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,902
2,227
363
cPanel Access Level
DataCenter Provider
Twitter
Thanks, the hits might have been related to "revalidate freq" i am not sure, seems better after increasing it but still in the millions.
Hello,

Could you open a support ticket so we can take a closer look to make sure it's functioning and reported the hits accurately? You can post the ticket number here and we'll link this thread to it.

Thank you.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,902
2,227
363
cPanel Access Level
DataCenter Provider
Twitter
Hello,

To update, here's the answer from one of our Technical Analysts:

As a simple test, I installed the same index page on my own server on a cPanel account with no traffic, created a few php files, had 5 hits. I requested my very basic WordPress site with no plugins or custom themes, and immediately, 249 files were cached, and I had 209 hits. the version.php file itself had 12 hits. With this in mind, and understanding that your site is much larger than this and that each visitor loads more than one page each visit, it appears to be expected for the "opcache hits" to be astronomical numbers even with low traffic.
Thank you.