Speed Up a WordPress Site with Lite Page Cache

Contents
For anyone running a WordPress site, speed is everything. A slow-loading website frustrates visitors, hurts search engine rankings, and decreases conversions. While there are dozens of caching plugins available in the WordPress repository, many of them are bloated, complex, and filled with features that may never be needed.
Sometimes all it takes is a simple, plug-and-play solution that does exactly one thing: serve static HTML files to visitors as fast as possible.
That is exactly why we built Lite Page Cache — a lightweight, zero-configuration caching plugin designed specifically for static pages and blog posts.
Here is a look at what makes it special, how to install it, and how to use it to instantly boost a site’s performance.
Why Choose Lite Page Cache?
Every time a visitor lands on a WordPress site, the server runs PHP scripts and queries the database to build the page. For a high-traffic site, this quickly drains server resources. Lite Page Cache solves this by capturing the final HTML output of each page and saving it as a static file.
When the next visitor requests that same page, the plugin intercepts the request and instantly serves the static HTML file, bypassing PHP and the database entirely.
Key Features:
- Zero Bloat: Just clean, efficient code that does one job perfectly.
- Smart Bypassing: It automatically skips caching for logged-in users (so the admin bar stays intact) and ignores URLs with tracking parameters (like
?utm_source=). - Auto-Flushing: The cached copy of a post and all listing pages are discarded automatically whenever that post is published, updated, or deleted; every entry also expires after one hour.
- Comment-Aware: The cached copy of the post and the listing pages are also discarded automatically the moment a new comment is approved, ensuring visitors see the latest discussion on the post.
How to Install Lite Page Cache
Since this is a custom, developer-friendly plugin, it is not in the standard WordPress plugin directory. Installation takes just a minute via the site’s file manager or FTP client.
Step-by-Step Installation
- Get Lite Page Cache from Github: https://github.com/LW-IT-Solutions/wp-lite-page-cache
- Access the server files: Open the web host’s File Manager or connect to the site via FTP/SFTP.
- Navigate to the plugins folder: Go to the WordPress installation directory and open
wp-content/plugins/. - Create a new folder: Create a directory named
lite-page-cache. - Upload the plugin files: Inside the new folder, upload the
lite-page-cacher.phpandREADME.mdfiles containing the plugin code. - Activate the plugin: Log in to the WordPress Admin Dashboard, navigate to Plugins > Installed Plugins, locate Lite Page Cache, and click Activate.
Note: The plugin will automatically create a secure cache/lite-page-cache/ folder inside the wp-content directory to store the generated HTML files.
How to Use Lite Page Cache
The best part about Lite Page Cache is that it barely needs to be “used” at all. It is entirely plug-and-play. From the moment it is activated, the plugin starts quietly building static HTML versions of pages and posts as visitors browse the site.
Automatic Cache Management
Outdated content is kept short-lived. The plugin automatically purges the cached copy of the affected post and all listing pages (home page, archives, categories) under the following conditions (every other entry expires after one hour by default):
- A new post or page is published.
- An existing post or page is updated.
- A post is deleted.
- A visitor leaves a comment that is instantly approved.
- A pending comment is approved from the moderation queue.
Manual Cache Clearing
There might be times when global changes hit the site – a theme update, a modified sidebar widget, a changed menu. Because these changes affect the layout of all pages, the entire cache needs clearing manually.
To do this:
- In the WordPress Dashboard, go to Settings > Lite Page Cache.
- A simple control panel appears. Click the blue Clear All Cache button.
- A success message will appear at the top of the screen confirming that all cached files have been deleted.
The cache will then seamlessly rebuild itself as visitors navigate the freshly updated site.
Is It Working?
To verify that the plugin is actively speeding up the site, log out of the WordPress admin panel (or open a private/incognito browsing window). Visit any blog post, right-click, and select View Page Source.
Scroll to the very bottom of the HTML code. A hidden comment like this should appear:
<!-- Cached by Lite Page Cache at 2026-07-03 14:30:00 -->
Refreshing the page and checking the source again reveals a second note, confirming it was instantly loaded from the cache:
<!-- Served from Lite Page Cache -->
The result is a newly optimized, blazingly fast WordPress site.
Questions and answers
Does an approved reply to an existing comment clear the cache the same way a new comment does?
Yes, because from WordPress’s point of view both are the same event: a reply is a comment with a parent comment, and approving it triggers the same hooks as for any other comment, whether it is approved instantly or from the moderation queue. The cached copy of the affected post is removed, and the next request writes it again, with the complete thread.
Along with it, the plugin discards all listing pages such as the home page, archives and categories, because the comment count may appear there. The pages of other posts, on the other hand, stay in the cache. If the comment changes something there as well, for example in a list of recent comments, the change shows up at the latest once the expiry time has passed: by default an entry is valid for one hour and is regenerated after that. That is the price of an approval not throwing away the entire cache.
One comment
Update: Version 1.1.0 of the plugin has been on GitHub since 25 September 2026. It no longer clears the whole cache on every change, only the entry of the affected post and the list pages, and every entry expires after one hour. Hits carry an
X-Cacheheader, and an optionaladvanced-cache.phpdrop-in answers them before WordPress loads. Visitors with remembered comment data are never cached. The version uploaded on 6 September could not be activated; 1.1.0 fixes that. Source: wp-lite-page-cache on GitHub.