當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FrmAppHelper::cache_delete_group方法代碼示例

本文整理匯總了PHP中FrmAppHelper::cache_delete_group方法的典型用法代碼示例。如果您正苦於以下問題:PHP FrmAppHelper::cache_delete_group方法的具體用法?PHP FrmAppHelper::cache_delete_group怎麽用?PHP FrmAppHelper::cache_delete_group使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FrmAppHelper的用法示例。


在下文中一共展示了FrmAppHelper::cache_delete_group方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: delete_missing_actions

 public static function delete_missing_actions($old_actions)
 {
     if (!empty($old_actions)) {
         foreach ($old_actions as $old_id) {
             wp_delete_post($old_id);
         }
         FrmAppHelper::cache_delete_group('frm_actions');
     }
 }
開發者ID:EliasGoldberg,項目名稱:troop-sim,代碼行數:9,代碼來源:FrmFormActionsController.php

示例2: clear_cache

 /**
  * Clear entry caching
  * Called when an entry is changed
  *
  * @since 2.0.5
  */
 public static function clear_cache()
 {
     FrmAppHelper::cache_delete_group('frm_entry');
     FrmAppHelper::cache_delete_group('frm_item');
     FrmAppHelper::cache_delete_group('frm_entry_meta');
     FrmAppHelper::cache_delete_group('frm_item_meta');
 }
開發者ID:rbkhrlstn,項目名稱:formidable-forms,代碼行數:13,代碼來源:FrmEntry.php

示例3: delete_form_transient

 public static function delete_form_transient($form_id)
 {
     $form_id = absint($form_id);
     delete_transient('frm_form_fields_' . $form_id . 'excludeinclude');
     delete_transient('frm_form_fields_' . $form_id . 'includeinclude');
     delete_transient('frm_form_fields_' . $form_id . 'includeexclude');
     delete_transient('frm_form_fields_' . $form_id . 'excludeexclude');
     global $wpdb;
     $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->options . ' WHERE option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s', '_transient_timeout_frm_form_fields_' . $form_id . 'ex%', '_transient_frm_form_fields_' . $form_id . 'ex%', '_transient_timeout_frm_form_fields_' . $form_id . 'in%', '_transient_frm_form_fields_' . $form_id . 'in%'));
     FrmAppHelper::cache_delete_group('frm_field');
     $form = FrmForm::getOne($form_id);
     if ($form && $form->parent_form_id) {
         self::delete_form_transient($form->parent_form_id);
     }
 }
開發者ID:uwmadisoncals,項目名稱:Cluster-Plugins,代碼行數:15,代碼來源:FrmField.php

示例4: clear_cache

 /**
  * Delete the action cache when a form action is created, deleted, or updated
  *
  * @since 2.0.5
  */
 public static function clear_cache()
 {
     FrmAppHelper::cache_delete_group('frm_actions');
 }
開發者ID:uwmadisoncals,項目名稱:Cluster-Plugins,代碼行數:9,代碼來源:FrmFormAction.php

示例5: clear_cache

 private function clear_cache()
 {
     $default_post_atts = array('post_type' => FrmStylesController::$post_type, 'post_status' => 'publish', 'numberposts' => 99, 'orderby' => 'title', 'order' => 'ASC');
     FrmAppHelper::delete_cache_and_transient(serialize($default_post_atts), 'frm_styles');
     FrmAppHelper::cache_delete_group('frm_styles');
     FrmAppHelper::delete_cache_and_transient('frmpro_css');
 }
開發者ID:uwmadisoncals,項目名稱:Cluster-Plugins,代碼行數:7,代碼來源:FrmStyle.php


注:本文中的FrmAppHelper::cache_delete_group方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。