Home › Knowledgebase › KB-1716

Redis Cache Entries Stuck

Summary

This guide helps you troubleshoot and resolve: Redis Cache Entries Stuck. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

Redis object cache improves WordPress performance by storing frequently accessed database queries in memory. However, when cache entries become stale or corrupted—often after a high-traffic event or a plugin update—your café or restaurant website may freeze, page loads may slow significantly, and PHP-FPM workers can saturate. This results in high CPU and RAM usage on shared or VPS hosting and spikes in database connections. This guide explains how to identify and clear stuck Redis cache entries and adjust expiration thresholds to restore stable performance.

Remember — If you host with us, you don't need to do this yourself — just Open a Ticket and our team will get it sorted.

Quick Fix Steps

  1. Log in to your WordPress admin dashboard.
  2. Navigate to your object cache plugin settings (for example, Redis Object Cache).
  3. Locate the cache management section and select Flush Cache or Clear All.
  4. Confirm the action and wait for the cache to clear.
  5. Reload your website in an incognito or private browser window to verify performance.

Detailed Instructions

Identify Stuck Cache Entries

  1. Access your hosting control panel or connect to your server via SSH.
  2. Open the Redis command line interface by running redis-cli.
  3. Check current memory usage with INFO memory. Look for the used_memory_human value.
  4. List recently accessed keys using KEYS * (use with caution on production servers with large datasets).
  5. Identify keys with unusually long TTL values or keys that no longer correspond to active posts, pages, or menu items.

Clear Stale Redis Cache Keys

  1. From the redis-cli prompt, flush the entire object cache database using FLUSHDB.
  2. Alternatively, remove specific patterns using KEYS "wp:*" followed by DEL for individual keys.
  3. Exit the Redis CLI by typing exit.
  4. Return to your WordPress admin and verify that pages load without freezing.

Tune Cache Expiration Thresholds

  1. Open your WordPress object cache plugin settings in the admin dashboard.
  2. Locate the Cache Expiration or TTL setting.
  3. Reduce the default expiration time if your menu or booking availability changes frequently. A value between 3600 and 86400 seconds is typical for hospitality venues.
  4. Save changes and monitor your site over the next 24–48 hours.
  5. If CPU and RAM usage remain high, repeat the flush process and lower the threshold further.

Troubleshooting

Website Still Freezing After Cache Clear

Redis Service Not Responding

Flushing the object cache will temporarily increase database load as pages are regenerated. Perform this action during a quiet period for your café or restaurant to avoid impacting customers making online bookings.

If the issue persists after following these steps, Open a Ticket for further assistance from our hosting support team.

Remember — If you host with us, you don't need to do this yourself — just Open a Ticket and our team will get it sorted.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket