Overview
Comment: | Create static directory if required |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
51390b5ba790f180d66766c707436888 |
User & Date: | bohwaz on 2017-10-10 04:58:29 |
Other Links: | branch diff | manifest | tags |
Context
2017-10-10
| ||
04:58 | Ne sont plus nécessaires check-in: b01c425c0b user: bohwaz tags: dev | |
04:58 | Create static directory if required check-in: 51390b5ba7 user: bohwaz tags: dev | |
2017-10-09
| ||
22:54 | Correction formulaire de login sur mobile non cliquable check-in: 7dd0a2f61e user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/Static_Cache.php from [1bdc82588f] to [29cb9a9906].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | + + + + + + + | <?php namespace Garradin; class Static_Cache { const EXPIRE = 3600; // 1h const CLEAN_EXPIRE = 86400; // 1 day protected static function _getCacheDir() { $dir = CACHE_ROOT . '/static'; if (!file_exists($dir)) { mkdir(CACHE_ROOT . '/static'); } return CACHE_ROOT . '/static'; } protected static function _getCachePath($id) { $id = 'cache_' . sha1($id); return self::_getCacheDir() . '/' . $id; |
︙ |