Overview
Comment:Version 0.9.5 stable, et identifiant de cache différent pour chaque association
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable | 0.9.5
Files: files | file ages | folders
SHA1: abca58dc4e3b70883b199cfae6ed52ea2e0bd0eb
User & Date: bohwaz on 2019-12-03 22:57:13
Other Links: manifest | tags
Context
2019-12-04
17:01
Dépendances check-in: ddb1679140 user: bohwaz tags: trunk
2019-12-03
22:57
Version 0.9.5 stable, et identifiant de cache différent pour chaque association check-in: abca58dc4e user: bohwaz tags: trunk, stable, 0.9.5
17:48
Amélioration de la gestion des configurations en sous-répertoire ou en alias (normalement) check-in: ca9198db3f user: bohwaz tags: trunk
Changes

Modified src/include/lib/Garradin/Static_Cache.php from [1abb2553b4] to [73b33ffa77].

    17     17   		}
    18     18   
    19     19   		return CACHE_ROOT . '/static';
    20     20   	}
    21     21   
    22     22   	protected static function _getCachePath($id)
    23     23   	{
    24         -		$id = 'cache_' . sha1($id);
           24  +		$id = 'cache_' . sha1(DB_FILE . $id);
    25     25   		return self::_getCacheDir() . '/' . $id;
    26     26   	}
    27     27   
    28     28   	static public function store($id, $content)
    29     29   	{
    30     30   		$path = self::_getCachePath($id);
    31     31   		return (bool) file_put_contents($path, $content);