phpsuphpopcache

Why is PHP 5.5's OPcache showing zero hits? suPHP the culprit?


PHP 5.5's OPcache extension is enabled on my (shared) web host, but for some reason it always reports "0 hits" in the stats. Could that be because it's not compatible with suPHP?

Or anyone have any other suggestions as to why there are 0 cache hits?

enter image description here


Solution

  • I've been told that no opcache extension is currently compatible with suPHP, sadly.

    LiteSpeed's suEXEC can support opcode caching but only in 'daemon' or 'process group' modes, not in standard 'worker' mode (see their explanation here).

    So even though you might be able to enable the opcache in cPanel or via INI, you don't get cache hits because the PHP process ends and the RAM is freed. Looks like I'm out of luck for the time being.