Permalink
Browse files

Invalidates built-in dust cache if caching disabled

  • Loading branch information...
1 parent 68f2f63 commit c9847bd5f165029f712efe156d9ea9702f826358 @fatjonny fatjonny 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 c9847bd

Please sign in to comment.