CC-Cache Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
The CC-Cache plugin supports caching of Posts, Pages, and any public Custom Post Types – including single and archive pages.
It also supports a “static page display” option: Front page, Posts page, and standard Latest Posts listing.
This plugin is compatible with Multisite WordPress installations.
How does it work?
When a user (i.e. someone who is logged out of WordPress) opens a page for the first time, the plugin saves all the rendered html to a file in the wp-content/cache directory.
From this moment onwards, any user who accesses the site will be served content directly from the generated html file. WordPress at this point is not initialized for this page.
The generated cache file will be removed when you make changes to the corresponding Post/Page, and then the process starts from the beginning.
You can also clear all cached files from the Cache options page (visit the ‘Settings > Cache’ page in wp-admin), or manually delete files from the wp-content/cache directory.
Tips & Tricks
You can check if a page’s content is served from a cache file by opening the page’s source code in the browser and scrolling down to the closing <body>
html tag.
If the content is cached, you should see a comment with the date and time the page was last cached, for example:
You can disable cache for a single request and get the raw html by adding cache=false
to a URL’s parameter, for example:
http://example.com/?cache=false
You can disable cache for a single request and get the raw html by adding cache=false
HTTP header.
Logged-in users always get the raw html.
Ideas for future versions
- Add support for Categories, Tags, Taxonomies, and Authors.
- Add support for RSS/Atom feeds.
- Add support for Nginx and IIS servers.
- Add support for other WordPress Filesystem Methods.
- Add regenerate function for all cache files.
Requirements
- Apache server
- mod_rewrite
- Write access to wp-content/cache directory
- PHP interpreter version >= 5.3
Screenshots
-
WordPress Cache Settings – Visit the ‘Settings > Cache’ page, select your preferred options and save them.
-
Post Cache Settings – You can disable the cache function for individual posts and pages by marking the Disable checkbox in Edit Post/Edit Page.