Title: Cache flush error
Last modified: June 5, 2024

---

# Cache flush error

 *  Resolved [Troy Chaplin](https://wordpress.org/support/users/areziaal/)
 * (@areziaal)
 * [2 years ago](https://wordpress.org/support/topic/cache-flush-error/)
 * I am having an error with yoast seo trying to flushing cache. I am getting the
   following error in my server logs when I save any page. I am using WP 6.5.3 in
   a Gutenberg environment. I am using Redis Sentinel for caching via predis. I 
   am running PHP 8.0.30. I am using version 2.5.2 of Redis Object Cache. I am using
   Yoast SEO version 22.8. I can flush the cache using the admin toolbar or wp-cli.
 * Here is the error I see in the server logs:
 * PHP Fatal error: Uncaught Error: Call to undefined method Predis\\Connection\\
   Replication\\SentinelReplication::getParameters() in /server_path/wp-content/
   object-cache.php:1651\nStack trace:\n_#0 /server\_path/wp-content/object-cache.
   php(1830): WP\_Object\_Cache->execute\_lua\_script()\n#1 /server\_path/wp-content/
   object-cache.php(171): WP\_Object\_Cache->flush\_group()\n#2 /server\_path/wp-
   content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(710): wp\
   _cache\_flush\_group()\n#3 /server\_path/wp-content/plugins/wordpress-seo/src/
   builders/indexable-link-builder.php(623): Yoast\\WP\\SEO\\Builders\\Indexable\
   _Link\_Builder->update\_incoming\_links\_for\_related\_indexables()\n#4 /server\
   _path/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(
   136): Yoast\\WP\\SEO\\Builders\\Indexable\_Link\_Builder->update\_related\_indexables()\
   n#5 /server\_path/wp-content/plugins/wordpress-seo/src/integrat_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [2 years ago](https://wordpress.org/support/topic/cache-flush-error/#post-17818035)
 * Hello Troy,
 * Thanks for using the Yoast SEO plugin. Are you running the SEO data optimization
   or editing content when you flush the cache? Can you provide more details for
   us to replicate this?
 *  Thread Starter [Troy Chaplin](https://wordpress.org/support/users/areziaal/)
 * (@areziaal)
 * [2 years ago](https://wordpress.org/support/topic/cache-flush-error/#post-17818060)
 * I believe there may be a fix in place from the Redis Cache plugin — [https://github.com/rhubarbgroup/redis-cache/pull/522](https://github.com/rhubarbgroup/redis-cache/pull/522)
 *  [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/)
 * (@611shabnam)
 * [2 years ago](https://wordpress.org/support/topic/cache-flush-error/#post-17822130)
 * Hi [@areziaal](https://wordpress.org/support/users/areziaal/)
 * Yes. It seems the pull request is merged. Possibly you won’t see the error once
   Redis cache team releases this.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cache flush error’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/cache-flush-error/#post-17822130)
 * Status: resolved