Changeset 32455 in spip-zone


Ignore:
Timestamp:
Oct 29, 2009, 7:31:44 AM (11 years ago)
Author:
fil@…
Message:

fastcache utilise memoization

Location:
_plugins_/fastcache
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/fastcache/creer_fastcache.php

    r32445 r32455  
    55if (!defined("_ECRIRE_INC_VERSION")) return;
    66
    7 # creer le lanceur dans tmp/pre_spip.inc
     7# creer le lanceur dans tmp/fcconfig_domaine.inc
    88function creer_fastcache() {
    99
     
    2323        $prefix = var_export($GLOBALS['cookie_prefix'], true);
    2424
    25         $xcache = var_export(find_in_path('inc/xcache.php'), true);
     25        $memoization = var_export(find_in_path('inc/memoization.php'), true);
    2626
    2727        $contenu = '<'.'?php' .
     
    3737@define ('_FC_IE_PNGHACK', $pnghack);
    3838@define ('_FC_COOKIE_PREFIX', $prefix);
    39 @define ('_FC_XCACHE', $xcache);
     39@define ('_FC_MEMOIZATION', $memoization);
    4040
    4141CONFIG
  • _plugins_/fastcache/fastcache.php

    r32445 r32455  
    1717AND !isset($_SERVER['PHP_AUTH_USER'])
    1818)
    19         define('_FC_KEY', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
     19        define('_FC_KEY', 'fastcache:'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
    2020
    2121function fc_testie() {
     
    2929
    3030if (defined('_FC_KEY'))
    31         require_once _FC_XCACHE;
     31        require_once _FC_MEMOIZATION;
    3232
    3333if (defined('_FC_KEY')
  • _plugins_/fastcache/plugin.xml

    r32447 r32455  
    4242        <fonctions>fastcache_fonctions.php</fonctions>
    4343        <necessite id="SPIP" version="[2.0.0;]" />
    44         <necessite id="xcache" />
     44        <necessite id="memoization" version="[0.3;]" />
    4545</plugin>
Note: See TracChangeset for help on using the changeset viewer.