From 338e7c5d56c0b639d6920c43010497e83a6ba2d2 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews@googlemail.com" Date: Mon, 17 Jun 2013 13:30:49 +0000 Subject: [PATCH] - enhancement added constant SMARTY::CLEAR_EXPIRED for the change of 26.05.2013 (forum topic 24310) --- change_log.txt | 1 + libs/Smarty.class.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/change_log.txt b/change_log.txt index 0345167a..070a4625 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ ===== trunk ===== 17.06.2013 - fixed spelling in sources and documentation (from smarty-developers forum Veres Lajos) +- enhancement added constant SMARTY::CLEAR_EXPIRED for the change of 26.05.2013 (forum topic 24310) 26.05.2013 - enhancement an expire_time of -1 in clearCache() and clearAllCache() will delete outdated cache files diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 2b9f795e..6c452fde 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -128,6 +128,11 @@ class Smarty extends Smarty_Internal_TemplateBase { const CACHING_OFF = 0; const CACHING_LIFETIME_CURRENT = 1; const CACHING_LIFETIME_SAVED = 2; + /** + * define constant for clearing cache files be saved expiration datees + */ + const CLEAR_EXPIRED = -1; + /** * define compile check modes */