programmer-logo
Get In Touch

WP Super Cache

By Automattic
Home
g-than-arrow
Plugins
g-than-arrow
WP Super Cache

About this plugin

WP Super Cache WordPress Plugin

WP Super Cache is a powerful caching plugin designed to make your WordPress website significantly faster. It does this by generating static HTML files from your dynamic pages. Once generated, these HTML files are served to most of your visitors, bypassing PHP execution and reducing server load. This approach results in faster page load times and better performance, especially during traffic spikes.

How WP Super Cache Works

The plugin serves cached files in three different ways:

Expert mode uses Apache's mod_rewrite (or a similar module) to deliver static HTML files, bypassing PHP entirely. This method is the fastest but requires modifying the .htaccess file, which can be risky if done incorrectly.

Simple mode serves cached HTML files via PHP. It's slightly slower than Expert mode but much easier and safer to configure, making it the recommended option for most users.

WP-Cache mode is ideal for caching pages for logged-in users, commenters, and dynamic pages with custom data. Although it's the slowest, it offers maximum flexibility and supports partial caching for dynamic content.

Recommended Settings

To get the best performance with minimal configuration, it is recommended to use the following:

  • Enable Simple caching mode
  • Compress pages for faster delivery
  • Disable caching for known users
  • Turn on Cache Rebuild to serve stale content during regeneration
  • Enable CDN support if you’re using a Content Delivery Network
  • Perform extra homepage checks
  • Set garbage collection to 1800 seconds for regular cleanup

Also, enable preload mode to generate cache for all posts and pages. This reduces server load and improves response times even when visitors aren’t actively browsing your content.

Garbage Collection

Over time, your cache directory will fill with outdated files. Garbage collection ensures that these files are deleted regularly. You can control how long cache files are stored (timeout), how often cleanup occurs (schedule), and whether to receive notifications. For most sites, a 30-minute timeout and 10-minute interval is a good starting point. For static sites, increase the timeout or disable garbage collection completely.

Preloading Feature

WP Super Cache can preload all posts, categories, and tags on your site. This process generates cached versions of your content ahead of time and is helpful for handling traffic surges. To enable it, turn on Preload Mode. This disables garbage collection for fresher content but ensures fast load times sitewide. Keep in mind that cache is still cleared if content is updated or comments are submitted.

CDN Integration

You can integrate a Content Delivery Network to serve static assets like images, JS, and CSS. WP Super Cache includes built-in support for CDN through the OSSDL CDN off-linker. It rewrites file URLs to a specified hostname, allowing static files to be served from a CDN or a custom subdomain. This feature improves load speed and reduces the strain on your main server.

REST API and Developer Options

WP Super Cache supports REST API endpoints for accessing plugin settings programmatically. Developers can also extend or customize caching behavior using functions like add_cacheaction() and hooks like wp_cache_get_cookies_values. You can also create custom plugins and integrate them into the plugin system to modify caching behavior at a deeper level.

Troubleshooting Common Issues

Here are some tips if things aren’t working as expected:

  • Ensure wp-content/ is writable by the server
  • Check that wp-content/wp-cache-config.php exists and is correctly configured
  • Verify that advanced-cache.php exists in wp-content/ and has the right path
  • Make sure the WP_CACHE constant is set to true and appears before wp-settings.php in wp-config.php
  • If caching isn’t working, clear the existing cache and re-enable the plugin
  • Disable compression in the plugin if your browser prompts to download the page instead of displaying it
  • Make sure your cache directory isn’t on a remote or networked filesystem like NFS or Samba
  • Check for necessary Apache modules: mod_headers, mod_mime, and mod_expires
  • If garbage collection fails, ensure wp-cron.php is being accessed properly

Final Thoughts

WP Super Cache is one of the most trusted caching plugins for WordPress. It’s actively maintained, compatible with most themes and plugins, and offers extensive customization. Whether you're running a small blog or a high-traffic site, this plugin can help you handle load spikes and speed up your site with minimal effort.

Version
3.0.0
Last updated
1 month ago
Active installations
1+ million
WordPress version
6.7 or higher
Ratings
4.3

Share This Article

Let’s Get Started

Contact Form Demo
WP-super-cache-logo

WP Super Cache

By  Automattic
Download
Download
Plugin

Turn Your Vision Into a High-Performing Website

Partner with our expert team for web development, UI/UX design, and digital marketing that delivers real results. Let’s build something powerful together.
Contact Us
programmer-logo
We are dedicated to delivering high-quality digital solutions that empower businesses to build a strong online presence. 
Follow Us
Contact Us
Phase 2, Industrial Area, Sector 62, Noida, Uttar Pradesh 201309
© 2025 All rights reserved.
arrow-down