本文整理汇总了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');
}
}
示例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');
}
示例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);
}
}
示例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');
}
示例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');
}