Title: WP Super Cache Breaks flush_rules()
Last modified: August 20, 2016

---

# WP Super Cache Breaks flush_rules()

 *  [Insurgo](https://wordpress.org/support/users/insurgo/)
 * (@insurgo)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/wp-super-cache-breaks-flush_rules/)
 * I have a plugin that uses $wp_rewrite->flush_rules(); to flush the rule cache
   but whenever WP Super Cache is enabled the page will stop running at that line,
   comment it out and it works fine, disable the plugin and it works with that line
   in.
 * Has anybody else run across this problem?
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

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

 *  [Viscosity](https://wordpress.org/support/users/viscosity/)
 * (@viscosity)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/wp-super-cache-breaks-flush_rules/#post-3163747)
 * Beside that, i just ponder if it has the option to purge the cache otherwise 
   it will keep increasing in size. Perhap it work like cache proxy. I still feel
   that it perhap may not be good for dynamic webpage content. Apart from that, 
   i feel that it is a great plugin.
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/wp-super-cache-breaks-flush_rules/#post-3163750)
 * [@insurgo](https://wordpress.org/support/users/insurgo/) – I’m afraid that’s 
   not a common problem. I haven’t seen it. Have you tried debugging wp-include/
   rewrite.php? The flush_rules() function is in there.
 * [@viscosity](https://wordpress.org/support/users/viscosity/) – garbage collection
   will purge old files on a regular basis and there are facilities for caching 
   dynamic parts of pages.

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

The topic ‘WP Super Cache Breaks flush_rules()’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/wp-super-cache-breaks-flush_rules/#post-3163750)
 * Status: not resolved