Feature Request: add compatibility with Supersonic plugin for Cloudflare
-
Hello! I’m using your plugin in several sites and it’s pretty great.
I noticed you have added some actions to clear the cache when plugins like NGG, CF7 or even WooThemes themes save settings. But there is another one you can add in order to improve compatibility. The plugin “WordPress SuperSonic with CloudFlare” has a great Cloudflare integration but it’s oriented to clear the cloud cache when posts/pages/comments are saved. But it won’t clear the cache when other actions produce changes in the frontend (menus, themes, widgets, etc).
So, I found that adding these actions to ccfm_admin_init() in clear-cache-for-widgets.php will do the trick:
add_action( 'wp_ajax_save-widget', 'wpss_save_post'); add_action( 'wp_ajax_widgets-order', 'wpss_save_post'); add_action( 'sidebar_admin_setup', 'wpss_save_post'); add_action( 'customize_save_after', 'wpss_save_post'); add_action( 'wp_update_nav_menu', 'wpss_save_post'); add_action( 'switch_theme', 'wpss_save_post');The issue with Supersonic is that it recommends using Page Rules at Cloudflare: https://ww.wp.xz.cn/plugins/supersonic/faq/ This make the cached pages persistent for longer times, making your site run ultra fast, but when you need a rapid/massive widgets/menu update, you will need your website cache to be rapidly updated. And the above code make it possible.
Hope you can take it into consideration soon.
Very thanks in advance!
The topic ‘Feature Request: add compatibility with Supersonic plugin for Cloudflare’ is closed to new replies.