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


PHP GFCache::delete方法代碼示例

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


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

示例1: refresh_lead_field_value

 public static function refresh_lead_field_value($lead_id, $field_id)
 {
     $cache_key = 'GFFormsModel::get_lead_field_value_' . $lead_id . '_' . $field_id;
     GFCache::delete($cache_key);
 }
開發者ID:Ezyva2015,項目名稱:SMSF-Academy-Wordpress,代碼行數:5,代碼來源:forms_model.php

示例2: clear_field_value_cache

 public static function clear_field_value_cache($form)
 {
     if (!class_exists('GFCache')) {
         return;
     }
     foreach ($form['fields'] as &$field) {
         if (GFFormsModel::get_input_type($field) == 'total') {
             GFCache::delete('GFFormsModel::get_lead_field_value__' . $field['id']);
         }
     }
 }
開發者ID:quinntron,項目名稱:tmad,代碼行數:11,代碼來源:functions.php

示例3: maybe_continue_cache_rebuild

 /**
  * Called only by the wp_cron job.
  *
  * @param array $data
  * @param int $form_id The form ID.
  */
 public function maybe_continue_cache_rebuild($data, $form_id)
 {
     if (rgar($data, 'incomplete')) {
         GFCache::set('gpoll_data_tmp_' . $form_id, $data, true);
     } else {
         GFCache::set('gpoll_data_' . $form_id, $data, true);
         GFCache::delete('gpoll_data_tmp_' . $form_id);
     }
 }
開發者ID:GravityPDF,項目名稱:gravityformspolls,代碼行數:15,代碼來源:class-gf-polls.php

示例4: delete_lock_meta

 protected function delete_lock_meta($object_id)
 {
     GFCache::delete(self::PREFIX_EDIT_LOCK . $this->_object_type . '_' . $object_id);
     return true;
 }
開發者ID:Nguyenkain,項目名稱:strida.vn,代碼行數:5,代碼來源:class-gf-locking.php

示例5: get_posted_settings

 /**
  * Ensure the group setting keys are not lost when the settings are saved. Clear the cached settings if no feeds exist so the new format keys will be used.
  *
  * @return array The post data containing the updated settings.
  */
 public function get_posted_settings()
 {
     $post_data = parent::get_posted_settings();
     if ($this->is_plugin_settings($this->_slug) && $this->is_save_postback() && !empty($post_data)) {
         $feed_count = $this->count_feeds();
         if ($feed_count > 0) {
             $settings = $this->get_previous_settings();
             $settings['apiKey'] = rgar($post_data, 'apiKey');
             return $settings;
         } else {
             GFCache::delete('mailchimp_plugin_settings');
         }
     }
     return $post_data;
 }
開發者ID:gabeayers,項目名稱:starter,代碼行數:20,代碼來源:class-gf-mailchimp.php


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