Back to Community

Resolving 'Page Cache Not Detected' Warnings in LiteSpeed Cache

28 threads Sep 16, 2025 PluginLitespeed cache

Content

A common issue reported by WordPress users of the LiteSpeed Cache plugin is the Site Health tool showing a warning: 'Page cache is not detected' or 'No client caching response headers were detected.' This warning can appear even when the plugin is active and configured. This guide explains why this happens and provides the most common solutions to resolve it.

Why This Warning Appears

The WordPress Site Health tool performs a test to determine if a page cache is active. It looks for specific HTTP response headers that are sent by caching systems. If these headers are missing, it assumes no page cache is present. For the LiteSpeed Cache plugin, the crucial header is X-LiteSpeed-Cache.

There are several reasons why this header might not be present, causing the warning:

  • Incorrect Server Environment: The full caching functionality of the LiteSpeed Cache plugin requires a LiteSpeed web server (OpenLiteSpeed or Enterprise) or a QUIC.cloud CDN subscription. If your site runs on Apache or NGINX (without LiteSpeed), the core page caching features will not work, though other optimizations like CSS/JS minification still will. This is the most common cause of this warning.
  • Server Misconfiguration: Even on a LiteSpeed server, the hosting provider must properly configure the server-level cache engine. An incorrect server configuration will prevent the plugin from generating cached pages.
  • Logged-in User View: The plugin will not serve cached pages to logged-in administrators. You must test as a logged-out guest user to see the correct cache headers.
  • Plugin or Theme Conflicts: Code from another plugin or your theme can explicitly tell LiteSpeed Cache not to cache a page, often via a constant like DONOTCACHEPAGE.
  • CDN or Proxy Interference: A Content Delivery Network (CDN) like Cloudflare can sometimes strip or interfere with the caching headers before they reach WordPress's Site Health test.

How to Troubleshoot and Fix the Issue

1. Verify Your Server Environment

First, confirm what web server software your hosting provider uses. You can often find this information in your hosting control panel (e.g., cPanel) or by asking your provider's support team. Remember:

  • LiteSpeed Web Server: Full page caching is available.
  • Apache or NGINX: Page caching is not available. The Site Health warning is expected and you can safely ignore it if performance is acceptable, as other plugin features are still active.

2. Generate and Provide a Report Number

If you are on a LiteSpeed server and see this warning, the next step is to generate a diagnostic report. This is the most critical piece of information for troubleshooting.

  1. In your WordPress admin panel, go to LiteSpeed Cache -> Toolbox -> Report.
  2. Click the 'Send to LiteSpeed' button.
  3. Copy the generated 'Report Number' (e.g., SCKMUCBS) and provide it when seeking help. This number allows others to review your site's configuration without needing admin access.

3. Test as a Logged-Out User

WordPress Site Health may run its test while you are logged in. To check if caching is working for visitors:

  1. Log out of WordPress.
  2. Open your browser's Incognito or Private mode.
  3. Visit your homepage.
  4. Open your browser's Developer Tools (F12) and go to the Network tab.
  5. Reload the page and click on the first document request (usually your domain name).
  6. Look at the 'Response Headers' for the X-LiteSpeed-Cache header. If you see hit or hit.locked, your cache is working correctly.

4. Check for Configuration Conflicts

If you are on a LiteSpeed server but headers are still missing, a conflict might be preventing caching.

  • CDN Settings: If you use Cloudflare or another CDN, ensure its own page caching is disabled. The LiteSpeed Cache plugin should be the sole source of page caching.
  • Theme/Plugin Code: Search your theme's functions.php file and other plugins for code that might set the DONOTCACHEPAGE constant to true. You can try adding the following code to your theme's functions.php file to forcefully set it to false:
    add_filter( 'litespeed_const_DONOTCACHEPAGE', '__return_false' );
  • Debug Logs: Enable the plugin's debug log (Toolbox -> Debug Settings) to see detailed reasons why a page is or is not being cached.

5. Contact Your Hosting Provider

If all else fails and you are on a LiteSpeed server, the issue is likely a server configuration problem that only your hosting provider can resolve. Provide them with your Report Number and ask them to verify that the LiteSpeed cache engine is configured correctly for your account.

Conclusion

The 'Page cache not detected' warning can be confusing. In many cases, it's simply because the site isn't on a LiteSpeed server, and the warning can be ignored. For sites on LiteSpeed servers, the solution typically involves checking for conflicts, verifying cache headers as a guest, and ultimately working with your hosting provider to ensure the server is configured properly. Generating a report number is always the best first step for getting targeted help.

Related Support Threads Support