caching observes now template_dir setting

This commit is contained in:
uwetews
2015-12-23 04:27:56 +01:00
parent 954ea7d963
commit 1723095862

View File

@@ -503,7 +503,7 @@ KEY `expire` (`expire`)
$_cache_id = isset($cache_id) ? preg_replace('![^\w\|]+!', '_', $cache_id) : null; $_cache_id = isset($cache_id) ? preg_replace('![^\w\|]+!', '_', $cache_id) : null;
$sp = $this->buildSourcePath($tpl, $name, $type, $dir); $sp = $this->buildSourcePath($tpl, $name, $type, $dir);
$uid = $this->buildUid($tpl, $sp, $name, $type); $uid = $this->buildUid($tpl, $sp, $name, $type);
$_filepath = $uid; $_filepath = sha1($uid . $this->smarty->_joined_template_dir);
// if use_sub_dirs, break file into directories // if use_sub_dirs, break file into directories
if ($sub) { if ($sub) {
$_filepath = $_filepath =