Changeset 32445 in spip-zone
- Timestamp:
- Oct 28, 2009, 10:34:26 PM (11 years ago)
- Location:
- _plugins_/fastcache
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/fastcache/creer_fastcache.php
r32441 r32445 20 20 $dir_tmp = var_export(_DIR_TMP, true); 21 21 22 if (!$cache = $cfg['cache'])23 $cache = _DIR_CACHE;24 $cache = var_export($cache, true);25 26 22 $meta = var_export(_FILE_META, true); 27 23 $prefix = var_export($GLOBALS['cookie_prefix'], true); … … 38 34 @define ('_DIR_PLUGIN_FASTCACHE', $dir_plugin_fastcache); 39 35 @define ('_DIR_TMP', $dir_tmp); 40 @define ('_FC_DIR_CACHE', $cache);41 36 @define ('_FC_META', $meta); 42 37 @define ('_FC_IE_PNGHACK', $pnghack); -
_plugins_/fastcache/fastcache.php
r32441 r32445 32 32 33 33 if (defined('_FC_KEY') 34 AND $p = cache_get(_FC_KEY)) { 34 AND $p = cache_get(_FC_KEY) 35 AND $p['time'] == @filemtime(_FC_META) 36 ) { 35 37 eval($p['head']); 36 38 $b = (!is_null($p['ie']) AND fc_testie()) ? 'ie' : 'body'; -
_plugins_/fastcache/fastcache_options.php
r32441 r32445 57 57 .(_FC_DEBUG?"\n<!-- read "._FC_KEY." -->\n":''), 58 58 'ie' => $ie 59 .(_FC_DEBUG?"\n<!-- read "._FC_KEY." -->\n":'') 59 .(_FC_DEBUG?"\n<!-- read "._FC_KEY." -->\n":''), 60 'time' => @filemtime(_FILE_META) 60 61 ), 61 62 _FC_PERIODE … … 82 83 $GLOBALS['spip_pipeline']['affichage_final'] = preg_replace(',\|mutualisation_url_img_courtes|^,','\0|Fastcache_affichage_final', $GLOBALS['spip_pipeline']['affichage_final']); 83 84 85 # Un recalcul provoque l'invalidation, par l'astuce du touch 86 if (isset($_GET['var_mode'])) @touch(_FILE_META); 87 84 88 ?>
Note: See TracChangeset
for help on using the changeset viewer.