Lite Cache
Lite Cache is a small cache plug-in ultra efficient. It’s small and lite because it does only one thing: caching.
Lite Cache requires blog owners to modify/move files to work, so it’s not an activate and play plug-in: if you don’t know how to open and change an .htaccess file or you wp-config.php file, please do not install it.
Lite Cache is compatible with gzip compression and handles it automatically.
Lite Cache works even with commentators, people who left a comment in the past. Other caching plug-in usually are not able to serve cached content to commentators.
Lite Cache can detect mobile devices, create a separate cache for them and force a secondary template for mobile devices.
Lite Cache can cache the pages even when the visitor is a logged in user, but it is not recommended and the option should be enabled ONLY if you know what to change in your theme to avoid disaster.
Lite Cache is actually used on a blog, www.periodofertile.it, which counts over a 1,000,000 page views per month and is saving the little virtual server where it is installed (with other two blogs). It is used on my personal Italian blog too, www.zeroblog.it, if you would see the page signed by Lite Cache.
Install it and go to the options panel to find how to configure it.
Download
Get Lite Cache from WordPress Plugin Directory.
F.A.Q.
Is it compatibile with multi-site installation?
Never tested, but I think it is not compatibile is you use third level domains.
Is it compatible with plug-ins designed to detect mobile devices?
Yes if the list of mobile agents configured on Lite Cache is the same of the one configured on your mobile plug-in.
How does it work?
Lite Cache grabs the generated page HTML of almost any page of your blog and stores it on a disk cache. It grabs the
page only on first request, the cache content is not generated on first activation.
Lite Cache, dfferently from other cache systems, operates even when the blog is surfed by people who commented the blog
and grants (when possible) to fill the comment box fields with user’s data without exposing it to other visitors. If your theme
blocks this feature, I cannot fix it and the comment box fields will be left empty.
Lite Cache does not operate under some circumstances:
- When a not found page is generated (404 error)
- When the feed is generated
- When a WordPress user is logged in and surfs the blog
- When the virtual robots.txt page is generated
- When a request is a trackback from other blogs
- When a plugin force the global variable “$cache_stop” to true
(read more on my standard proposal for cache systems)
When the cache is cleaned up (invalidated)?
Lite Cache cleans up the cache when the blog content is changed, with these rules (no, they are not configurable):
- When a post is changed its cached page is removed with the home, tags, type, current year, feeds and categories cached pages
- When a post gets a comment only its cached page is removed (that removes the pages comments and the comment feed as well)
How can I check if it is working?
- Open your browser and go to the blog admin side.
- Log in.
- Log out (on right top there is that option).
- Open a blog page.
- Reload it a couple of time.
- Look at the page HTML source: last line should be looks like <!– lite cache… –>
It does not work.
Have you tried to follow the steps on previous answer?
It still does not work.
May be Lite Cache is not compatible with your installation: do not use it. My blogs use it and it works on them. It happens.
Does Lite cache correctly manages the paged comments?
Yes, it does.
Are feeds cached?
Yes, they are and there is no option to avoid that.
There is an option to stop the cache for specific agents?
No.
There is an option to stop the cache for specific cookies?
No.
There is an option to stop the cache for specific URLs?
No.
There are options to control the cache at post and page level (eg. on editing panel)?
No.
Can I avoid to cache the home page?
No.
Can I stop the cache for Google Bot or other search engine bots?
No.
Does Lite Cache caches images?
No, it has no meaning.
Does Lite Cache minify or cleans up the HTML code?
No, even with tidy installed, it creates too much issues with XML snipped from Facebook and others.
Does Lite Cache minify Javascript or CSS?
No.
Does Lite Cache can use CDNs?
No.
Can be used in conjunction with Apache Rewrite Engine and the .htaccess?
Yes, when you save the options the snippet of rules to copy inside the .htaccess.
It is mandatory to modify the .htaccess?
No, and if you don’t know how to modify it, please don’t try to edit the file. If you want to try, keep a backup. If the site does not show up after an .htaccess modification, restore the original .htaccess.
Does Lite Cache is compatible with mfunc?
No, it is not.
How can Lite Cache stopped on a specific page by third party plug-in or short code?
Any plug-in that want to avoid a specific page to be cached, must set to false the global variable
$cache_stop. For example I force it to false on some of my plug-in short codes when they generate different
output depending on who is navigating the site.
How to filter the cached content of a page
Register a standard WordPress filter with name “cache_buffer”: the buffer is passed on your function and your function
can process it and return the modified content that will be stored. An example:
function my_cache_buffer_filter($buffer) {
return $buffer . ‘<!– I was here –>;
}
add_filter(‘cache_buffer’, ‘my_cache_buffer_filter’);
