LW IT Solutions
« Blog Overview /WordPress Plugins & Tricks / Speed Up a WordPress Site with Lite...
Read this article in other languages:

Speed Up a WordPress Site with Lite Page Cache

Speed Up a WordPress Site with Lite Page Cache
Contents
  1. Why Choose Lite Page Cache?
  2. How to Install Lite Page Cache
  3. How to Use Lite Page Cache
  4. Is It Working?
  5. Questions and answers
  6. Sources

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.
Request path with Lite Page Cache: first request through PHP and MySQL into a cache file, all following requests straight from that file
The plugin only pays off from the second request on: the first one renders normally and drops an HTML file, everything after is answered from that file without PHP or database.

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

  1. Get Lite Page Cache from Github: https://github.com/LW-IT-Solutions/wp-lite-page-cache
  2. Access the server files: Open the web host’s File Manager or connect to the site via FTP/SFTP.
  3. Navigate to the plugins folder: Go to the WordPress installation directory and open wp-content/plugins/.
  4. Create a new folder: Create a directory named lite-page-cache.
  5. Upload the plugin files: Inside the new folder, upload the lite-page-cacher.php and README.md files containing the plugin code.
  6. 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:

  1. In the WordPress Dashboard, go to Settings > Lite Page Cache.
  2. A simple control panel appears. Click the blue Clear All Cache button.
  3. 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.

Lukas Wojcik

Lukas Wojcik

Systems architect and technology enthusiast specializing in scalable tracking solutions, GMP Stack (GA4 & GTM), and robust backend architectures. Advocate for clean code and privacy-first design.

Get in Touch

Briefly describe your project or inquiry for a tailored response. This site is protected by reCAPTCHA.

One comment

  1. Lukas Wojcik Author

    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-Cache header, and an optional advanced-cache.php drop-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.

Write a comment

Experience with other plugins or hosting environments and questions about the setup are welcome here.

The email address is not published. Required fields are marked with an asterisk.

Articles & categories

CCTV

Follow this category by RSS

Cloud & AI

All 17 articles in this category Follow this category by RSS

Data Privacy

All 19 articles in this category Follow this category by RSS

Digital Analytics

All 58 articles in this category Follow this category by RSS

Digital Marketing

All 37 articles in this category Follow this category by RSS

IT & Networks

All 18 articles in this category Follow this category by RSS

Music Production

All 17 articles in this category Follow this category by RSS

Raspberry PI

Follow this category by RSS

SaaS & Internet Earning

Follow this category by RSS

Smart Home

All 18 articles in this category Follow this category by RSS

Web Development

All 11 articles in this category Follow this category by RSS

WordPress Plugins & Tricks

All 14 articles in this category Follow this category by RSS