Overview
Comment: | Déplacement nettoyage du cache |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
110b39bfde47be2c18a3e81fea0708d3 |
User & Date: | bohwaz on 2014-04-21 00:50:57 |
Other Links: | manifest | tags |
Context
2014-04-21
| ||
02:20 | Sécurité sur les requêtes exécutées dans les squelettes check-in: 92d8611330 user: bohwaz tags: trunk | |
00:50 | Déplacement nettoyage du cache check-in: 110b39bfde user: bohwaz tags: trunk | |
00:50 | classe manquante check-in: 89170d3c1d user: bohwaz tags: trunk | |
Changes
Modified src/cron.php from [112e7a2074] to [d4a8acbd51].
︙ | ︙ | |||
16 17 18 19 20 21 22 | // Exécution des rappels automatiques $rappels = new Rappels; if ($rappels->countAll()) { $rappels->sendPending(); } | > > > | 16 17 18 19 20 21 22 23 24 25 | // Exécution des rappels automatiques $rappels = new Rappels; if ($rappels->countAll()) { $rappels->sendPending(); } // Nettoyage du cache statique Static_Cache::clean(); |
Modified src/include/lib.static_cache.php from [3f6dc6e023] to [6a9d022131].
︙ | ︙ | |||
44 45 46 47 48 49 50 51 52 53 54 55 56 57 | } static public function display($id) { $path = self::_getCachePath($id); return readfile($path); } static public function remove($id) { $path = self::_getCachePath($id); return unlink($path); } | > > > > > | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | } static public function display($id) { $path = self::_getCachePath($id); return readfile($path); } static public function getPath($id) { return self::_getCachePath($id); } static public function remove($id) { $path = self::_getCachePath($id); return unlink($path); } |
︙ | ︙ | |||
76 77 78 79 80 81 82 | } $d->close(); return true; } } | < < | 81 82 83 84 85 86 87 | } $d->close(); return true; } } |
Modified src/www/admin/compta/graph.php from [31e9cec4e4] to [de49fbeada].
︙ | ︙ | |||
77 78 79 80 81 82 83 | } Static_Cache::store('graph_' . $graph, $plot->output()); } header('Content-Type: image/svg+xml'); Static_Cache::display('graph_' . $graph); | < < < < < < < < | 77 78 79 80 81 82 83 | } Static_Cache::store('graph_' . $graph, $plot->output()); } header('Content-Type: image/svg+xml'); Static_Cache::display('graph_' . $graph); |
Modified src/www/admin/compta/pie.php from [7c03ac3ef3] to [0cdcddb4b0].
1 2 3 4 5 6 7 8 9 10 11 12 | <?php namespace Garradin; require_once __DIR__ . '/_inc.php'; if (!in_array(utils::get('g'), ['recettes', 'depenses'])) { throw new UserException('Graphique inconnu.'); } $graph = utils::get('g'); | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?php namespace Garradin; require_once __DIR__ . '/_inc.php'; if (!in_array(utils::get('g'), ['recettes', 'depenses'])) { throw new UserException('Graphique inconnu.'); } $graph = utils::get('g'); if (Static_Cache::expired('pie_' . $graph)) { $stats = new Compta_Stats; $categories = new Compta_Categories; require_once ROOT . '/include/libs/svgplot/lib.svgpie.php'; $pie = new \SVGPie(400, 250); |
︙ | ︙ | |||
51 52 53 54 55 56 57 | } if ($others > 0) { $pie->add(new \SVGPie_Data($others, 'Autres', '#ccc')); } | | | < < < < < < < < | 51 52 53 54 55 56 57 58 59 60 61 62 | } if ($others > 0) { $pie->add(new \SVGPie_Data($others, 'Autres', '#ccc')); } Static_Cache::store('pie_' . $graph, $pie->output()); } header('Content-Type: image/svg+xml'); Static_Cache::display('pie_' . $graph); |