Changeset 48813 in spip-zone


Ignore:
Timestamp:
Jun 15, 2011, 3:07:52 PM (10 years ago)
Author:
cedric@…
Message:

stocker les wheels pré-chargées dans un sous-repertoire dédié, cela facilite la purge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/textwheel/inc/memoization-mini.php

    r41208 r48813  
    33# memoization minimale (preferer le plugin memoization)
    44function cache_get($key) {
    5         return @unserialize(file_get_contents(_DIR_CACHE.$key));
     5        return @unserialize(file_get_contents(_DIR_CACHE."wheels/".$key.".txt"));
    66}
    77function 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));
    910}
    1011
Note: See TracChangeset for help on using the changeset viewer.