original_string: public static function ActiveCache() {
        /*
         * There is a catch 22 with caching the config file. We need
         * an external way to define the cache layer before needing it 
         * in the config.
         */
        
        if (defined('CACHE_METHOD_OVERRIDE'))
           $ActiveCache = CACHE_METHOD_OVERRIDE;
        else
           $ActiveCache = C('Cache.Method', FALSE);
        
        // This should only fire when cache is loading automatically
        if (!func_num_args() && Gdn::PluginManager() instanceof Gdn_PluginManager) {
           Gdn::PluginManager()->EventArguments['ActiveCache'] = &$ActiveCache;
           Gdn::PluginManager()->FireEvent('BeforeActiveCache');
        }
        
        return $ActiveCache;
     }
code: public static function ActiveCache() {
        /*
         * There is a catch 22 with caching the config file. We need
         * an external way to define the cache layer before needing it 
         * in the config.
         */
        
        if (defined('CACHE_METHOD_OVERRIDE'))
           $ActiveCache = CACHE_METHOD_OVERRIDE;
        else
           $ActiveCache = C('Cache.Method', FALSE);
        
        // This should only fire when cache is loading automatically
        if (!func_num_args() && Gdn::PluginManager() instanceof Gdn_PluginManager) {
           Gdn::PluginManager()->EventArguments['ActiveCache'] = &$ActiveCache;
           Gdn::PluginManager()->FireEvent('BeforeActiveCache');
        }
        
        return $ActiveCache;
     }
code_tokens: public static function ActiveCache ( ) { /*
         * There is a catch 22 with caching the config file. We need
         * an external way to define the cache layer before needing it 
         * in the config.
         */ if ( defined ( 'CACHE_METHOD_OVERRIDE' ) ) $ ActiveCache = CACHE_METHOD_OVERRIDE ; else $ ActiveCache = C ( 'Cache.Method' , FALSE ) ; // This should only fire when cache is loading automatically if ( ! func_num_args ( ) && Gdn :: PluginManager ( ) instanceof Gdn_PluginManager ) { Gdn :: PluginManager ( ) -> EventArguments [ 'ActiveCache' ] = & $ ActiveCache ; Gdn :: PluginManager ( ) -> FireEvent ( 'BeforeActiveCache' ) ; } return $ ActiveCache ; }
docstring: Gets the shortname of the currently active cache
  
  This method retrieves the name of the active cache according to the config file.
  It fires an event thereafter, allowing that value to be overridden
  by loaded plugins.
  
  @return string shortname of current auto active cache
docstring_tokens: Gets the shortname of the currently active cache