/** * GetObjectCacheInstance * * Return the singleton instance of the object cache * * @access public * @static * @return mixed instance of cache class */ public static function GetObjectCacheInstance() { if (!self::$objectCacheInstance) { self::$objectCacheInstance = new GitPHP_Cache(); if (GitPHP_Config::GetInstance()->GetValue('objectcache', false)) { self::$objectCacheInstance->SetEnabled(true); self::$objectCacheInstance->SetLifetime(GitPHP_Config::GetInstance()->GetValue('objectcachelifetime', 86400)); } } return self::$objectCacheInstance; }