Title: Cool Plugin
Last modified: January 12, 2017

---

# Cool Plugin

 *  Resolved [tharmann](https://wordpress.org/support/users/tharmann/)
 * (@tharmann)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/cool-plugin-203/)
 * Great code – I was able to re-purpose some of it for a cache issue on WP Engine.
 * I just wanted to let you know – check out your ccfm_clear_cache_for_me() function
   in the main plugin file (line 80).
 * You have this towards the end:
 *     ```
       if ( method_exists( 'WpeCommon', 'purge_memcached' ) ) {
                   WpeCommon::purge_memcached();
               }
               if ( method_exists( 'WpeCommon', 'purge_memcached' ) ) {  
                   WpeCommon::clear_maxcdn_cache();
               }
               if ( method_exists( 'WpeCommon', 'purge_memcached' ) ) {
                   WpeCommon::purge_varnish_cache();   
               }
       ```
   
 * It looks like your checking for the same exact method 3 times but then actually
   executing a different method 2 of those times.
 * Unless I’m missing something.
 * Thanks again for the cool plugin!

Viewing 1 replies (of 1 total)

 *  Plugin Author [webheadcoder](https://wordpress.org/support/users/webheadllc/)
 * (@webheadllc)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/cool-plugin-203/#post-8649257)
 * Wow thank you so much for letting me know! lazy copy-paste error. This has been
   fixed in v0.91.
 * Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Cool Plugin’ 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: [9 years, 5 months ago](https://wordpress.org/support/topic/cool-plugin-203/#post-8649257)
 * Status: resolved