Redis Cache Entries Stuck
Summary
This guide helps you troubleshoot and resolve: Redis Cache Entries Stuck. Follow the steps below to fix the issue.
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.
Quick Fix Steps
- Log in to your WordPress admin dashboard.
- Navigate to your object cache plugin settings (for example, Redis Object Cache).
- Locate the cache management section and select Flush Cache or Clear All.
- Confirm the action and wait for the cache to clear.
- Reload your website in an incognito or private browser window to verify performance.
Detailed Instructions
Identify Stuck Cache Entries
- Access your hosting control panel or connect to your server via SSH.
- Open the Redis command line interface by running
redis-cli. - Check current memory usage with
INFO memory. Look for theused_memory_humanvalue. - List recently accessed keys using
KEYS *(use with caution on production servers with large datasets). - 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
- From the
redis-cliprompt, flush the entire object cache database usingFLUSHDB. - Alternatively, remove specific patterns using
KEYS "wp:*"followed byDELfor individual keys. - Exit the Redis CLI by typing
exit. - Return to your WordPress admin and verify that pages load without freezing.
Tune Cache Expiration Thresholds
- Open your WordPress object cache plugin settings in the admin dashboard.
- Locate the Cache Expiration or TTL setting.
- 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.
- Save changes and monitor your site over the next 24–48 hours.
- If CPU and RAM usage remain high, repeat the flush process and lower the threshold further.
Troubleshooting
Website Still Freezing After Cache Clear
- Disable recently installed or updated plugins one at a time to identify conflicts.
- Check your PHP error log for fatal errors related to database connection limits.
- Verify that PHP-FPM worker limits are appropriate for your hosting plan.
- Ensure your WordPress installation, theme, and plugins are up to date.
Redis Service Not Responding
- Restart the Redis service through your hosting control panel or via SSH using
sudo systemctl restart redis. - Confirm the Redis service is set to start automatically on boot.
- Check available disk space; a full disk can prevent Redis from writing cache data.
If the issue persists after following these steps, Open a Ticket for further assistance from our hosting support team.
Still Having Issues?
💻 Open a Ticket