source: spip-zone/_plugins_/textwheel/inc/memoization-mini.php @ 41208

Last change on this file since 41208 was 41208, checked in by fil@…, 11 years ago

plein de simplifications du code (on supprime les timers et les debug) ; report de http://core.spip.org/trac/spip/changeset/16329 (bug fix de la langue typo dans l'espace prive) ; integration propre avec memoization

File size: 251 bytes
Line 
1<?php
2
3# memoization minimale (preferer le plugin memoization)
4function cache_get($key) {
5        return @unserialize(file_get_contents(_DIR_CACHE.$key));
6}
7function cache_set($key, $value) {
8        return ecrire_fichier(_DIR_CACHE.$key, serialize($value));
9}
10
11?>
Note: See TracBrowser for help on using the repository browser.