Title: MMR + Backend cache issues
Last modified: December 4, 2017

---

# MMR + Backend cache issues

 *  Resolved [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/)
 * (@lucasbustamante)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/mmr-backend-cache-issues/)
 * I use Comet Cache Pro to generate HTML version of my dynamic pages, aka back-
   end cache. The problem is that when MMR generates new minified assets, the Comet
   Cache HTML files still points to the old assets, that no longer exists since 
   MMR generated new ones, and the result is a broken front-end.
 * Is there a MMR hook where I could issue a command to clear all cache when new
   assets are generated?
    -  This topic was modified 8 years, 10 months ago by [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/).
    -  This topic was modified 8 years, 10 months ago by [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/).

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

 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/mmr-backend-cache-issues/#post-9748012)
 * Hi Lucas,
 * There isn’t currently a hook but you could comment out line 526 and roll your
   own code to clear out your cache directory when you clear the Comet Cache.
 * Or if you want to modify MMR and you come up with a good solution shoot us a 
   patch and I’ll add it in.
 *  Thread Starter [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/)
 * (@lucasbustamante)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/mmr-backend-cache-issues/#post-9748414)
 * I’ll try to come up with a pull-request, thank you!
 *  Thread Starter [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/)
 * (@lucasbustamante)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/mmr-backend-cache-issues/#post-9748721)
 * I did the necessary changes but I’m having trouble creating a pull request. I’ve
   never done it before, can you please check if the repository allows for pull 
   requests?
 *  Thread Starter [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/)
 * (@lucasbustamante)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/mmr-backend-cache-issues/#post-9748849)
 * I forked the repo and managed to create a pull request with the hook 🙂
 * [https://github.com/wp-plugins/merge-minify-refresh/pull/1](https://github.com/wp-plugins/merge-minify-refresh/pull/1)
    -  This reply was modified 8 years, 10 months ago by [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/).
 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/mmr-backend-cache-issues/#post-9801873)
 * Thanks Lucas. I’ve just uploaded a new version of MMR that adds this. I slightly
   modified the variables but should work the same as its completely based off your
   code.
 *  Thread Starter [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/)
 * (@lucasbustamante)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/mmr-backend-cache-issues/#post-9802830)
 * That’s great to hear, thank you!

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

 The topic ‘MMR + Backend cache issues’ is closed to new replies.

 * ![](https://ps.w.org/merge-minify-refresh/assets/icon.svg?rev=3414776)
 * [Merge + Minify + Refresh](https://wordpress.org/plugins/merge-minify-refresh/)
 * [Support Threads](https://wordpress.org/support/plugin/merge-minify-refresh/)
 * [Active Topics](https://wordpress.org/support/plugin/merge-minify-refresh/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/merge-minify-refresh/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/merge-minify-refresh/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/mmr-backend-cache-issues/#post-9802830)
 * Status: resolved