We'll create fresh WordPress site with CC-Cache installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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.
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.
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.