library/core/class.autoloader.php
public static function SmartFree($ContextType = NULL, $MapResourceArray = NULL) {

      $CacheFolder = @opendir(PATH_CACHE);
      if (!$CacheFolder) return TRUE;
      while ($File = readdir($CacheFolder)) {
         $Extension = pathinfo($File, PATHINFO_EXTENSION);
         if ($Extension == 'ini' && $File != 'locale_map.ini')
            @unlink(CombinePaths(array(PATH_CACHE, $File)));
      }
      
   }
public static function SmartFree($ContextType = NULL, $MapResourceArray = NULL) {

      $CacheFolder = @opendir(PATH_CACHE);
      if (!$CacheFolder) return TRUE;
      while ($File = readdir($CacheFolder)) {
         $Extension = pathinfo($File, PATHINFO_EXTENSION);
         if ($Extension == 'ini' && $File != 'locale_map.ini')
            @unlink(CombinePaths(array(PATH_CACHE, $File)));
      }
      
   }
public static function SmartFree ( $ ContextType = NULL , $ MapResourceArray = NULL ) { $ CacheFolder = @ opendir ( PATH_CACHE ) ; if ( ! $ CacheFolder ) return TRUE ; while ( $ File = readdir ( $ CacheFolder ) ) { $ Extension = pathinfo ( $ File , PATHINFO_EXTENSION ) ; if ( $ Extension == 'ini' && $ File != 'locale_map.ini' ) @ unlink ( CombinePaths ( array ( PATH_CACHE , $ File ) ) ) ; } }
This method frees the map storing information about the specified resource

Takes a maptype, and an array of information about the resource in question:
a plugininfo array, in the case of a plugin, or

@param string $ContextType type of map to consider (one of the MAP_ constants)
@param array $MapResourceArray array of information about the mapped resource
This method frees the map storing information about the specified resource