/** * Load cached file map */ public static function loadFileMap() { $existing_files = array(); /* * In development mode we can skip loading/building * the file_map as we will revert back to pure file_exists * and not make use of this mapping. */ if (!self::$devMode) { @(include sugar_cached(self::CACHE_FILE)); if (empty($existing_files)) { // oops, something happened to cache // try to rebuild self::buildCache(); @(include sugar_cached(self::CACHE_FILE)); } } self::$filemap = $existing_files; self::$memmap = array(); }