source:
spip-zone/_plugins_/textwheel/inc/memoization-mini.php
@
41208
Last change on this file since 41208 was 41208, checked in by , 11 years ago | |
---|---|
File size: 251 bytes |
Line | |
---|---|
1 | <?php |
2 | |
3 | # memoization minimale (preferer le plugin memoization) |
4 | function cache_get($key) { |
5 | return @unserialize(file_get_contents(_DIR_CACHE.$key)); |
6 | } |
7 | function 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.