public static function Initialize($ForceEnable = FALSE, $ForceMethod = FALSE) {
      $AllowCaching = self::ActiveEnabled($ForceEnable); 
      $ActiveCache = Gdn_Cache::ActiveCache();
      
      if ($ForceMethod !== FALSE) $ActiveCache = $ForceMethod;
      $ActiveCacheClass = 'Gdn_'.ucfirst($ActiveCache);
      
      if (!$AllowCaching || !$ActiveCache || !class_exists($ActiveCacheClass)) {
         
         $CacheObject = new Gdn_Dirtycache();
      } else
         $CacheObject = new $ActiveCacheClass();
      
      if (method_exists($CacheObject,'Autorun'))
         $CacheObject->Autorun();
      
      // This should only fire when cache is loading automatically
      if (!func_num_args() && Gdn::PluginManager() instanceof Gdn_PluginManager)
         Gdn::PluginManager()->FireEvent('AfterActiveCache');
      
      return $CacheObject;
   }
public static function Initialize($ForceEnable = FALSE, $ForceMethod = FALSE) {
      $AllowCaching = self::ActiveEnabled($ForceEnable); 
      $ActiveCache = Gdn_Cache::ActiveCache();
      
      if ($ForceMethod !== FALSE) $ActiveCache = $ForceMethod;
      $ActiveCacheClass = 'Gdn_'.ucfirst($ActiveCache);
      
      if (!$AllowCaching || !$ActiveCache || !class_exists($ActiveCacheClass)) {
         
         $CacheObject = new Gdn_Dirtycache();
      } else
         $CacheObject = new $ActiveCacheClass();
      
      if (method_exists($CacheObject,'Autorun'))
         $CacheObject->Autorun();
      
      // This should only fire when cache is loading automatically
      if (!func_num_args() && Gdn::PluginManager() instanceof Gdn_PluginManager)
         Gdn::PluginManager()->FireEvent('AfterActiveCache');
      
      return $CacheObject;
   }
public static function Initialize ( $ ForceEnable = FALSE , $ ForceMethod = FALSE ) { $ AllowCaching = self :: ActiveEnabled ( $ ForceEnable ) ; $ ActiveCache = Gdn_Cache :: ActiveCache ( ) ; if ( $ ForceMethod !== FALSE ) $ ActiveCache = $ ForceMethod ; $ ActiveCacheClass = 'Gdn_' . ucfirst ( $ ActiveCache ) ; if ( ! $ AllowCaching || ! $ ActiveCache || ! class_exists ( $ ActiveCacheClass ) ) { $ CacheObject = new Gdn_Dirtycache ( ) ; } else $ CacheObject = new $ ActiveCacheClass ( ) ; if ( method_exists ( $ CacheObject , 'Autorun' ) ) $ CacheObject -> Autorun ( ) ; // This should only fire when cache is loading automatically if ( ! func_num_args ( ) && Gdn :: PluginManager ( ) instanceof Gdn_PluginManager ) Gdn :: PluginManager ( ) -> FireEvent ( 'AfterActiveCache' ) ; return $ CacheObject ; }
Determines the currently installed cache solution and returns a fresh instance of its object

@return Gdn_Cache
Determines the currently installed cache solution and returns a fresh instance of its object