当前位置: 首页>>代码示例>>PHP>>正文


PHP wp_cache_close函数代码示例

本文整理汇总了PHP中wp_cache_close函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_cache_close函数的具体用法?PHP wp_cache_close怎么用?PHP wp_cache_close使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wp_cache_close函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: shutdown_action_hook

/**
 * Runs just before PHP shuts down execution.
 *
 * @since 1.2.0
 * @access private
 */
function shutdown_action_hook()
{
    /**
     * Fires just before PHP shuts down execution.
     *
     * @since 1.2.0
     */
    do_action('shutdown');
    wp_cache_close();
}
开发者ID:hughnet,项目名称:WordPress,代码行数:16,代码来源:load.php

示例2: wp_cache_flush

<?php

$noDISP = '1';
$no = '';
if (isset($_REQUEST['no'])) {
    if ($_REQUEST['no'] != '1') {
        $noDISP = $no = $_REQUEST['no'];
    }
}
$FORMCOUNT = $FORMCOUNT + 1;
//sorry, but WP2.2 doesn quickly enough flush the cache!
if (function_exists(wp_cache_close)) {
    wp_cache_flush();
    wp_cache_close();
}
update_option('cforms_formcount', (string) $FORMCOUNT);
add_option('cforms' . $FORMCOUNT . '_count_fields', get_option('cforms' . $no . '_count_fields'));
for ($j = 1; $j <= get_option('cforms' . $no . '_count_fields'); $j++) {
    //delete all extra fields!
    add_option('cforms' . $FORMCOUNT . '_count_field_' . $j, get_option('cforms' . $no . '_count_field_' . $j));
}
add_option('cforms' . $FORMCOUNT . '_required', get_option('cforms' . $no . '_required'));
add_option('cforms' . $FORMCOUNT . '_emailrequired', get_option('cforms' . $no . '_emailrequired'));
add_option('cforms' . $FORMCOUNT . '_ajax', get_option('cforms' . $no . '_ajax'));
add_option('cforms' . $FORMCOUNT . '_confirm', get_option('cforms' . $no . '_confirm'));
add_option('cforms' . $FORMCOUNT . '_fname', "Duplicate of form #{$noDISP}");
add_option('cforms' . $FORMCOUNT . '_csubject', get_option('cforms' . $no . '_csubject'));
add_option('cforms' . $FORMCOUNT . '_cmsg', get_option('cforms' . $no . '_cmsg'));
add_option('cforms' . $FORMCOUNT . '_cmsg_html', get_option('cforms' . $no . '_cmsg_html'));
add_option('cforms' . $FORMCOUNT . '_email', get_option('cforms' . $no . '_email'));
add_option('cforms' . $FORMCOUNT . '_bcc', get_option('cforms' . $no . '_bcc'));
开发者ID:prabhu,项目名称:desistartups,代码行数:31,代码来源:lib_options_dup.php

示例3: shutdown_action_hook

/**
 * Runs just before PHP shuts down execution.
 *
 * @access private
 * @since 1.2.0
 */
function shutdown_action_hook()
{
    do_action('shutdown');
    wp_cache_close();
}
开发者ID:laiello,项目名称:qinhan,代码行数:11,代码来源:load.php

示例4: deactivate

 function deactivate()
 {
     global $wp_roles;
     $GLOBALS['WPoption']->delete_option();
     $wp_roles->remove_cap('administrator', 'manage_cache');
     //Workaround this - http://trac.wordpress.org/ticket/2387
     wp_cache_close();
 }
开发者ID:kitfrench,项目名称:Futurestep,代码行数:8,代码来源:wp-cache-inspect.php


注:本文中的wp_cache_close函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。