コード例 #1
0
ファイル: metamodel.class.php プロジェクト: henryavila/itop
 public static function ResetCache($sEnvironmentId = null)
 {
     if (!function_exists('apc_delete')) {
         return;
     }
     if (is_null($sEnvironmentId)) {
         $sEnvironmentId = MetaModel::GetEnvironmentId();
     }
     $sAppIdentity = 'itop-' . $sEnvironmentId;
     Dict::ResetCache($sAppIdentity);
     foreach (self::GetCacheEntries($sEnvironmentId) as $sKey => $aAPCInfo) {
         $sAPCKey = $aAPCInfo['info'];
         apc_delete($sAPCKey);
     }
 }