Axjs

How to enable the default WordPress cache in 3 easy steps

Posted on: 四月 23, 2009

How to enable the default WordPress cache in 3 easy steps

Note: This information applies to WordPress versions less than 2.5 only.

Ready? Implementing the default WordPress object cache is remarkably simple:

1) Enable the caching mechanism — open your wp-config.php file and set the value of ENABLE_CACHE to “TRUE”:

define('ENABLE_CACHE', TRUE);

2) Create the cache directory — create a folder called “cache” and place it within the wp-content directory:

/wp-content/cache/

3) Make the cache folder writable — ensure that the folder is writable by setting its permissions to 755 or 777.

Advertisements

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s

%d 位部落客按了讚: