Welcome Guest, Not a member yet? Register   Sign In
Zend OpCache
#1

I am using CI 3.0 and have installed Zend OpCache 7.0.3.

This is working fine.

My OpCache does not seem to be doing anything. Direct scripts seems to be cached, but no CI scripts are cached.

What am I missing?

Thanks.
Reply
#2

(11-08-2014, 08:08 AM)Chroma Wrote: I am using CI 3.0 and have installed Zend OpCache 7.0.3.

This is working fine.

My OpCache does not seem to be doing anything. Direct scripts seems to be cached, but no CI scripts are cached.

What am I missing?

Thanks.

It looks like my OpCache is being called on a per instance basis, which is why it is doing nothing!
Reply
#3

I have got to the bottom of the problem and it might help others, so here is the solution.

You cannot use either XCache or OpCache or any other caching system on a shared hosting system.

The one we were working with was suPHP, which as you may know works well, on a shared hosting system.

Unfortunately, due to the way shared hosting works, you cannot for security reasons use the accelerator caches, even if they are present in cPanel or equivalent.

You can switch the caches on, but they will slow down your code and provide a penalty not a benefit. Since they do not save any data, the cache is destroyed at the end of the invoked script.

Summary
On a shared system, with suPHP or equivalent, there is no possibility of using OpCache in PHP. Turn them off, they will only hurt performance.

Sad
Reply




Theme © iAndrew 2016 - Forum software by © MyBB