Esempio n. 1
0
    if ($goon) {
        adminmsg('updatecache_step', EncodeUrl($j_url));
    } else {
        adminmsg('operate_success');
    }
} elseif ($action == 'refreshMemcache') {
    $pwServer['REQUEST_METHOD'] != 'POST' && PostCheck($verify);
    InitGP(array('fid'));
    $memcache = new ClearMemcache();
    $memcache->refresh(array($fid));
    adminmsg('operate_success');
} elseif ($action == 'clearMemcache') {
    $pwServer['REQUEST_METHOD'] != 'POST' && PostCheck($verify);
    InitGP(array('fid'));
    $memcache = new ClearMemcache();
    $memcache->clear(array($fid));
    adminmsg('operate_success');
} elseif ($action == 'flushMemcache') {
    $pwServer['REQUEST_METHOD'] != 'POST' && PostCheck($verify);
    $memcache = new ClearMemcache();
    $memcache->flush();
    adminmsg('operate_success');
}
class ClearMemcache
{
    /*
     * 刷新缓存
     */
    function refresh($forumIds)
    {
        if (!is_array($forumIds)) {