From 579d3e9acf122591d8ffeecd6700ee2661a9b410 Mon Sep 17 00:00:00 2001 From: Christian Seel Date: Sat, 1 Nov 2014 08:58:48 +0100 Subject: [PATCH] allow files to be excluded from the cache refresh This is useful if you have a .htaccess file in the statcache folder --- core/components/statcache/elements/plugins/StaticCache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/components/statcache/elements/plugins/StaticCache.php b/core/components/statcache/elements/plugins/StaticCache.php index 152c0f3..23ee0c1 100644 --- a/core/components/statcache/elements/plugins/StaticCache.php +++ b/core/components/statcache/elements/plugins/StaticCache.php @@ -100,7 +100,8 @@ array( 'deleteTop' => false, 'skipDirs' => false, - 'extensions' => array() + 'extensions' => array(), + 'delete_exclude_items' => explode(',', $modx->getOption('statcache_delete_exclude', $scriptProperties, '')) ) ); }