From 20cb65fdb8d77fd26b1b7de756a5a9bc8d2ff1b0 Mon Sep 17 00:00:00 2001 From: mohrt Date: Wed, 24 Apr 2002 14:46:02 +0000 Subject: [PATCH] changed doc structure a bit --- Smarty.class.php | 2 +- demo/templates/debug.tpl | 12 +- docs/programmers.sgml | 234 +++++++++++++++++++-------------------- libs/Smarty.class.php | 2 +- templates/debug.tpl | 12 +- 5 files changed, 135 insertions(+), 127 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index 5a7357d1..b319e707 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -1546,7 +1546,7 @@ function _run_insert_handler($args) // cache expired, regenerate return false; } - } elseif ($this->caching == 1) { + } else { // caching by lifetime if ($this->cache_lifetime > -1 && (time() - $this->_cache_info['timestamp'] > $this->cache_lifetime)) { // cache expired, regenerate diff --git a/demo/templates/debug.tpl b/demo/templates/debug.tpl index 88a99175..a273172e 100644 --- a/demo/templates/debug.tpl +++ b/demo/templates/debug.tpl @@ -1,12 +1,18 @@ {* Smarty *} -{* debug.tpl, last updated version 1.4.6 *} +{* debug.tpl, last updated version 2.0.1 *} {assign_debug_info}