Jump to content

Opcache

Featured Replies

Posted

I asked my hosts to install this  but it didn't appear to be working correctly. See below and the hits / misses.

I asked why that would happen and they said it is due to two possible things:
A) Items not cachable
B) As you are running CGI as your PHP handler opcache gets emptied on every request as each of them starts there own cache. The other PHP handler that can be used is "dso" - Would you like me to try enable that? 

How exactly should I be using this?

 

opcache.png

It is normal to have some hit misses but normal hits should be a lot lot more than missed ones :)

Yes try DSO :)

  • Author

I always had the impression cgi (I use fastcgi) was the fastest, due to that I wasn't keen on changing but I may be wrong?

You can test both very easy :)

  • 3 weeks later...
  • Author

I've installed opcache today and it seems to be working now i've changed to php-fpm from cgi.

One problem I've had reported since though is that the topic list was not updating for guests since I turned opcache on. It's fine for me but I've seen the screenshot and it appears there is an issue there. Anyone else experienced this?

  • 1 month later...

I'm using memcache 3.0.9-dev with php 7.0.14 and have Zend OPcache enabled but not sure if it's caching as cache hits are 0, cache scripts is 1 and cache misses is 1....at least that's what it looks like. I also have zlib compression on. 

Does OPcache need to be configured for IPS?

  • Author

What can I use alongside opcache?

@AlexWebsites

Yes you must enable it from advanced configuration menu :-)

@marklcfc

You can use Memcached ....

  • Author
 

@AlexWebsites

Yes you must enable it from advanced configuration menu :-)

@marklcfc

You can use Memcached ....

My hosts don't co-operate when I asked about memcached a few months ago.

  Quote

Regarding memcached, no progress I'm afraid, it's still yet to recieve an update to allow PHP 7 support as per output from WHM: pecl/memcached requires PHP (version >= 5.2.0, version <= 6.0.0, excluded versions: 6.0.0), installed version is 7.0.11).

  Quote

There is an apache extension for memcache now which goes via: ea-apache24-mod_socache_memcache however there isn't a PHP extension version.

 

Redis is just as good as memcached. Been using it for ages without an issue with php7

  Quote

My hosts don't co-operate when I asked about memcached a few months ago.

That's a good time to start thinking to do by yourself things and don't wait for others :)

I use it for php7 from a long time ago with no issues !

 

  • Author
 

That's a good time to start thinking to do by yourself things and don't wait for others :)

I use it for php7 from a long time ago with no issues !

Well I can't install things by myself on the server as it will only result in the server breaking and my forum being offline.

Then you may need to find another provider :)

If provider refuse to do what you want then you can't do anything about it than find another provider that will met your requirements .....

  • Author
 

Redis is just as good as memcached. Been using it for ages without an issue with php7

Same old story been told this morning it's not compatible with php 7

 

Same old story been told this morning it's not compatible with php 7

Redis? Yes it is! Supports php7 and 7.1

  • Author
 

Redis? Yes it is! Supports php7 and 7.1

  Quote

cPanel doesn't currently have native support for Redis however i see there is a feature request of other people requesting this so hopefully this maybe something added soon.

 

You cant install redis from your package manager then install redis as a pecl extension? Its taken cpanel 10 years to add php-fpm i wouldnt hold your breath on them adding anything 'soon'.

  • Author
 

You cant install redis from your package manager then install redis as a pecl extension? Its taken cpanel 10 years to add php-fpm i wouldnt hold your breath on them adding anything 'soon'.

My hosts have done that now and having activated it I'm not seeing any real difference.

My site is still considerably slower when logged in than when not logged in. Any idea what would cause that?

  Quote

My site is still considerably slower when logged in than when not logged in. Any idea what would cause that?

That's because as a guest you are viewing a cached forum version...

  • Author

I understand that, I still find this site another numerous others I've tried is still more reactive when logged in

In general there are many things to do for a super fast forum....

You may want to check also:

Many details can do the difference :)

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.