Changeset 48813 in spip-zone for _core_/plugins/textwheel/inc/memoization-mini.php
- Timestamp:
- Jun 15, 2011, 3:07:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_core_/plugins/textwheel/inc/memoization-mini.php
r41208 r48813 3 3 # memoization minimale (preferer le plugin memoization) 4 4 function cache_get($key) { 5 return @unserialize(file_get_contents(_DIR_CACHE. $key));5 return @unserialize(file_get_contents(_DIR_CACHE."wheels/".$key.".txt")); 6 6 } 7 7 function cache_set($key, $value) { 8 return ecrire_fichier(_DIR_CACHE.$key, serialize($value)); 8 $dir = sous_repertoire(_DIR_CACHE,"wheels/"); 9 return ecrire_fichier($dir.$key.".txt", serialize($value)); 9 10 } 10 11
Note: See TracChangeset
for help on using the changeset viewer.