original_string: 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;
     }
code: 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;
     }
code_tokens: 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 ; }
docstring: Determines the currently installed cache solution and returns a fresh instance of its object
  
  @return Gdn_Cache
docstring_tokens: Determines the currently installed cache solution and returns a fresh instance of its object