Skip to content

Commit

Permalink
Add $options['templatedependentspath'] as part of the cache_key to en…
Browse files Browse the repository at this point in the history
…able switching file include paths without clearing cache
  • Loading branch information
ericras committed Jun 9, 2011
1 parent b8e4ae9 commit d37f39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UNL/Templates.php
Expand Up @@ -128,7 +128,7 @@ static function &factory($type, $coptions = false)
function getCache()
{
$cache = self::getCachingService();
$cache_key = self::$options['version'].$this->__template;
$cache_key = self::$options['version'].self::$options['templatedependentspath'].$this->__template;
// Test if there is a valid cache for this template
if ($data = $cache->get($cache_key)) {
// Content is in $data
Expand Down

0 comments on commit d37f39a

Please sign in to comment.