Changeset 43697 in spip-zone


Ignore:
Timestamp:
Jan 20, 2011, 9:55:11 AM (8 years ago)
Author:
fil@…
Message:

compatilbite SPIP 1.9 sans balise #CACHE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/memoization/public/cacher.php

    r43696 r43697  
    213213        }
    214214
     215        /* compat SPIP 1.9 */
     216        if (is_array($page) AND !isset($page['entetes']['X-Spip-Cache']))
     217                $page['duree'] = $page['entetes']['X-Spip-Cache'] = 3600;
     218
    215219        // Second appel, destine a l'enregistrement du cache sur le disque
    216220        if (isset($chemin_cache)) return creer_cache($page, $chemin_cache, $memo);
Note: See TracChangeset for help on using the changeset viewer.