當前位置: 首頁>>代碼示例>>PHP>>正文


PHP eZContentCacheManager::clearTemplateBlockCacheIfNeeded方法代碼示例

本文整理匯總了PHP中eZContentCacheManager::clearTemplateBlockCacheIfNeeded方法的典型用法代碼示例。如果您正苦於以下問題:PHP eZContentCacheManager::clearTemplateBlockCacheIfNeeded方法的具體用法?PHP eZContentCacheManager::clearTemplateBlockCacheIfNeeded怎麽用?PHP eZContentCacheManager::clearTemplateBlockCacheIfNeeded使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在eZContentCacheManager的用法示例。


在下文中一共展示了eZContentCacheManager::clearTemplateBlockCacheIfNeeded方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

            if ($siteINI->hasVariable('FileSettings', 'VarDir')) {
                $varDir = $siteINI->variable('FileSettings', 'VarDir');
                $cacheDir = eZDir::path(array($varDir, $cacheDir));
            }
        }
    } else {
        if ($siteINI->hasVariable('FileSettings', 'VarDir')) {
            $varDir = $siteINI->variable('FileSettings', 'VarDir');
            $cacheDir = $ini->variable('FileSettings', 'CacheDir');
            $cacheDir = eZDir::path(array($varDir, $cacheDir));
        } else {
            $cacheDir = eZSys::cacheDirectory();
        }
    }
    $compiledTemplateDir = $cacheDir . "/template/compiled";
    eZDir::unlinkWildcard($compiledTemplateDir . "/", "*pagelayout*.*");
    // Expire template block cache
    eZContentCacheManager::clearTemplateBlockCacheIfNeeded(false);
}
$availableMenuArray = $menuINI->variable('MenuSettings', 'AvailableMenuArray');
$menuArray = array();
foreach ($availableMenuArray as $menuType) {
    $menuArray[] = array('type' => $menuType, 'settings' => $menuINI->group($menuType));
}
$tpl->setVariable('available_menu_array', $menuArray);
$tpl->setVariable('current_menu', $menuINI->variable('SelectedMenu', 'CurrentMenu'));
$tpl->setVariable('siteaccess_list', $siteAccessList);
$tpl->setVariable('current_siteaccess', $siteAccess);
$Result = array();
$Result['content'] = $tpl->fetch("design:visual/menuconfig.tpl");
$Result['path'] = array(array('url' => false, 'text' => ezpI18n::tr('design/standard/menuconfig', 'Menu management')));
開發者ID:CG77,項目名稱:ezpublish-legacy,代碼行數:31,代碼來源:menuconfig.php

示例2: storeObjectAttribute

 function storeObjectAttribute($attribute)
 {
     $ini = eZINI::instance();
     // Delete compiled template
     $siteINI = eZINI::instance();
     if ($siteINI->hasVariable('FileSettings', 'CacheDir')) {
         $cacheDir = $siteINI->variable('FileSettings', 'CacheDir');
         if ($cacheDir[0] == "/") {
             $cacheDir = eZDir::path(array($cacheDir));
         } else {
             if ($siteINI->hasVariable('FileSettings', 'VarDir')) {
                 $varDir = $siteINI->variable('FileSettings', 'VarDir');
                 $cacheDir = eZDir::path(array($varDir, $cacheDir));
             }
         }
     } else {
         if ($siteINI->hasVariable('FileSettings', 'VarDir')) {
             $varDir = $siteINI->variable('FileSettings', 'VarDir');
             $cacheDir = $ini->variable('FileSettings', 'CacheDir');
             $cacheDir = eZDir::path(array($varDir, $cacheDir));
         } else {
             $cacheDir = eZSys::cacheDirectory();
         }
     }
     $compiledTemplateDir = $cacheDir . "/template/compiled";
     eZDir::unlinkWildcard($compiledTemplateDir . "/", "*pagelayout*.*");
     // Expire template block cache
     eZContentCacheManager::clearTemplateBlockCacheIfNeeded(false);
 }
開發者ID:patrickallaert,項目名稱:ezpublish-legacy-php7,代碼行數:29,代碼來源:ezpackagetype.php

示例3: clearContentCacheIfNeeded

 static function clearContentCacheIfNeeded($objectID, $versionNum = true, $additionalNodeList = false)
 {
     eZDebug::accumulatorStart('check_cache', '', 'Check cache');
     eZContentCacheManager::clearObjectViewCacheIfNeeded($objectID, $versionNum, $additionalNodeList);
     eZContentCacheManager::clearTemplateBlockCacheIfNeeded($objectID);
     // Clear cached path strings of content SSL zones.
     eZSSLZone::clearCacheIfNeeded();
     eZDebug::accumulatorStop('check_cache');
     return true;
 }
開發者ID:netbliss,項目名稱:ezpublish,代碼行數:10,代碼來源:ezcontentcachemanager.php


注:本文中的eZContentCacheManager::clearTemplateBlockCacheIfNeeded方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。