WordPress Internal Caching

Oct31
  • Share

Difficulty: ★★☆☆☆
In case when you have slow database server, it might be a good idea to store frequently used data
in a serialized form on disk. WordPress has an integrated disk-cache which stores rarely changing data like categories and users in a special folder.
wordpress-folder/wp-content/cache.
To enable Wordpress internal caching, CMOD the above cache folder to 777. (make it writable)
And add the following line to:

wordpress-folder/wp-config.php.

define( ‘ENABLE_CACHE’, true );

Note that this cache is not recommended if the disk is slow or your host (like DreamHost) set up a NFS based storage solution which would request the cached data
from a remote storage server.

For more caching tricks check: http://www.arnebrachhold.de/2007/02/16/four-plus-one-ways-to-speed-up-the-performance-of-wordpress-with-caching/



Leave a comment