3 if (!defined('_ECRIRE_INC_VERSION')) return;
5 # memoization minimale (preferer le plugin memoization)
6 function cache_get($key) {
7 return @unserialize
(file_get_contents(_DIR_CACHE
."wheels/".$key.".txt"));
9 function cache_set($key, $value) {
10 $dir = sous_repertoire(_DIR_CACHE
,"wheels/");
11 return ecrire_fichier($dir.$key.".txt", serialize($value));