function flush_sliders_cache() { if (isset($_POST['msp_general_setting'])) { if (isset($_POST['msp_general_setting']['_enable_cache']) && 'on' == $_POST['msp_general_setting']['_enable_cache']) { msp_flush_all_sliders_cache(); } } }
/** * Regenerate and cache custom css codes for all slider after plugin update * * @return bool TRUE on success, FALSE otherwise */ public function after_plugin_update() { if (get_option('masterslider_plugin_version', '0') == MSWP_AVERTA_VERSION) { return false; } msp_save_custom_styles(); msp_flush_all_sliders_cache(); update_option('masterslider_plugin_version', MSWP_AVERTA_VERSION); do_action('masterslider_after_plugin_updated'); return true; }