• Sales: 1-800-961-2888
  • Support: 1-800-961-4454

Cloud Sites PHP Op-code Cache


We will be introducing an op-code cache on our PHP based web nodes. Normally, PHP files have to be read and parsed for each request before they are executed. This processing time gets longer the more complex your site is. The cache temporarily stores the result of this step so it may be used for further requests eliminating processing overhead and the associated resource usage.

Our cache is based on XCache, however we will be using just the code-caching portion. If your application has native support for XCache, it will not be able to take advantage of it. Direct user access will not be supported.

We have tested and ensured compatibility with a very wide variety of common applications and code. Some applications may still exhibit behaviors like a blank white page or reporting errors. If the cache is suspected for the cause of the errors, it can be disabled in the .htaccess file with the following:

php_flag xcache.cacher 0

If the cache ends up not being the problem, please remove the entry to ensure you are getting the benefits of the cache.



© 2011-2013 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER

4 Comments

How can I check to see that xcache is working correctly on my wordpress sites ?

Since the implementation won't respond to code requests, I think the best way to test it would be to run a web site benchmarking tool with and without XCache enabled.

A decent desktop benchmarking tool is JMeter: http://jmeter.apache.org/

If you prefer a simple web-based benchmark tool you can try: http://webwait.com/

The best way to test if this is working (or rather, not working) on your WordPress site is to check your log files. There will be weird errors involving site directories that aren't yours if you are having an issue. If your logs are clean, it's not this.

You can also add the following:

php_flag xcache.size 0
php_flag xcache.cacher off
php_flag xcache.stat off

Add new comment