Example #1
0
 private static function _preloadConfigIfNotLoaded()
 {
     // avoid doing string operations and a call to APC if we can
     if (self::$_isLoaded) {
         return;
     }
     $isLoadedKey = "_" . self::PREFIX . "is_loaded";
     if (apc_fetch(Cache::PREFIX . $isLoadedKey) !== false) {
         // yay, we already loaded the config, return to what we were doing.
         self::$_isLoaded = true;
         return;
     }
     self::forceReload($isLoadedKey);
 }