コード例 #1
0
ファイル: class-msp-settings.php プロジェクト: namleduc/thqc
 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();
         }
     }
 }
コード例 #2
0
 /**
  * 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;
 }