Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Invalidates built-in dust cache if caching disabled

  • Loading branch information...
commit c9847bd5f165029f712efe156d9ea9702f826358 1 parent 68f2f63
@fatjonny fatjonny authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/consolidate.js
View
1  lib/consolidate.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.