apc vs eaccelerator vs xcache
APC is going to be included in PHP 6, and I’d guess it has been chosen for good reason 🙂 It’s fairly easy to install and certainly speeds things up.
APC is going to be included in PHP 6, and I’d guess it has been chosen for good reason 🙂 It’s fairly easy to install and certainly speeds things up.
Zend OPCache included in PHP 5.5 On the 21st March 2013, the PHP 5.5 beta 1 was released including “Zend OPCache” – It looks firmly like this will be the replacement for APC going forward as it is included in the PHP core, and will have to be maintained for each new release. I would … Read more
Various Apache modules will strip the Authorization header, usually for “security reasons”. They all have different obscure settings you can tweak to overrule this behaviour, but you’ll need to determine exactly which module is to blame. You can work around this issue by passing the header directly to PHP via the env: SetEnvIf Authorization “(.*)” … Read more
You can use the PHP function apc_clear_cache. Calling apc_clear_cache() will clear the system cache and calling apc_clear_cache(‘user’) will clear the user cache.
Memcached is a distributed caching system, whereas APC is non-distributed – and mainly an opcode cache. If (and only if) you have a web application which has to live on different webservers (loadbalancing), you have to use memcache for distributed caching. If not, just stick to APC and its cache. You should always use an … Read more
Find your php.ini and look for XDebug. Set xdebug autostart to false xdebug.remote_autostart=0 xdebug.remote_enable=0 Disable your profiler xdebug.profiler_enable=0 Note that there can be a performance loss even with xdebug disabled but loaded. To disable loading of the extension itself, you need to comment it in your php.ini. Find an entry looking like this: zend_extension = … Read more
Using a TTL of 0 means that APC will flush all the cache when it runs out of memory. The error don’t appear anymore but it makes APC far less efficient. It’s a no risk, no trouble, “I don’t want to do my job” decision. APC is not meant to be used that way. You … Read more