Title: WP Rocket bug
Last modified: August 16, 2023

---

# WP Rocket bug

 *  Resolved [deargeek](https://wordpress.org/support/users/deargeek/)
 * (@deargeek)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/wp-rocket-bug/)
 * Line 268 of **clear-cache-for-widgets/clear-cache-for-widgets.php** should read…
 * else if ( function_exists( ‘rocket_clean_domain’ ) ) {
 * **not**
 * else if ( class_exists( ‘rocket_clean_domain’ ) ) {
 * See: [https://docs.wp-rocket.me/article/494-how-to-clear-cache-via-cron-job#clear-cache](https://docs.wp-rocket.me/article/494-how-to-clear-cache-via-cron-job#clear-cache)

Viewing 1 replies (of 1 total)

 *  Plugin Author [webheadcoder](https://wordpress.org/support/users/webheadllc/)
 * (@webheadllc)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/wp-rocket-bug/#post-16979243)
 * Thank you for letting me know. Version 2.0.1 should be out now and has this fixed.
 * Thanks again!

Viewing 1 replies (of 1 total)

The topic ‘WP Rocket bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/clear-cache-for-widgets.svg)
 * [Clear Cache for Me](https://wordpress.org/plugins/clear-cache-for-widgets/)
 * [Support Threads](https://wordpress.org/support/plugin/clear-cache-for-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/clear-cache-for-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/clear-cache-for-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/clear-cache-for-widgets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [webheadcoder](https://wordpress.org/support/users/webheadllc/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/wp-rocket-bug/#post-16979243)
 * Status: resolved