当前位置: 首页>>代码示例>>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;未经允许,请勿转载。