Permalink
Browse files

Merge pull request #76 from BouncingPixel/invalidateDustCache

Invalidates built-in dust cache if caching disabled
  • Loading branch information...
2 parents 68f2f63 + c9847bd commit 44260dabe43107e6082ae641ccca437de3e5e481 @tj committed Apr 4, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/consolidate.js
View
@@ -212,6 +212,7 @@ exports.dust.render = function(str, options, fn){
if (options.views) views = options.views;
if (options.settings && options.settings.views) views = options.settings.views;
}
+ if (!options || (options && !options.cache)) engine.cache = {};
engine.onLoad = function(path, callback){
if ('' == extname(path)) path += '.' + ext;

0 comments on commit 44260da

Please sign in to comment.