Changeset 43698 in spip-zone


Ignore:
Timestamp:
Jan 20, 2011, 9:59:25 AM (10 years ago)
Author:
fil@…
Message:

utiliser la globale delais dans le cas de SPIP 1.9

File:
1 edited

Legend:

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

    r43697 r43698  
    215215        /* compat SPIP 1.9 */
    216216        if (is_array($page) AND !isset($page['entetes']['X-Spip-Cache']))
    217                 $page['duree'] = $page['entetes']['X-Spip-Cache'] = 3600;
     217                $page['duree'] = $page['entetes']['X-Spip-Cache'] = $GLOBALS['delais'];
    218218
    219219        // Second appel, destine a l'enregistrement du cache sur le disque
Note: See TracChangeset for help on using the changeset viewer.