當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。