Resolving Cache Issues

Resolving Cache Issues

When using the caching features of SEO Booster, you might encounter situations where content isn’t cached as expected, or cached content isn’t updating correctly. This guide will help you identify and resolve these common issues.

Common Cache Issues

Some typical problems you might face include:

  • Stale Cache: The cached content isn’t updating after a post is modified.
  • Cache Misses: Content is being fetched from the server instead of the cache.
  • Excessive Cache Size: The cache directory is growing too large.

Steps to Resolve Cache Issues

1. Verify Cache Validity

Ensure that the cache is correctly invalidated when a post is updated. This can be checked by reviewing the modification times of both the post and the cache file.

2. Manually Clear the Cache

If the cache isn’t updating as expected, you may need to manually clear it. Currently, SEO Booster does not include a built-in cache reset feature, but you can manually delete the cached files by navigating to the cache directory:

wp-content/cache/seo-booster/

Simply delete the files within this directory to clear the cache.

3. Check File Permissions

Ensure that the cache directory has the correct file permissions. If SEO Booster can’t write to this directory, it won’t be able to create or update cached files.

4. Use the Debug Log for Troubleshooting

SEO Booster includes a Debug Log page that can be accessed via SEO Booster -> Debug Log. This dynamic table allows you to search for and view issues related to caching and other plugin operations. The log provides detailed information about cache hits, misses, and errors, helping you diagnose and fix problems.

Viewing and Using the Debug Log

The Debug Log is an essential tool for troubleshooting cache issues. To access it:

  • Navigate to: SEO Booster -> Debug Log.
  • Search: Use the search functionality to find specific entries related to cache operations.
  • Analyze: Look for entries indicating cache hits (e.g., “Cache hit for URL”) or errors (e.g., “Failed to fetch URL”).

By following these steps and using the Debug Log, you can effectively troubleshoot and resolve most cache-related issues, ensuring that your site remains efficient and up-to-date.