Comparing version 0.5.1 to 0.5.2
@@ -66,4 +66,4 @@ /** | ||
options.renderCacheOptions = options.renderCacheOptions || {}; | ||
var max = options.renderCacheOptions.max || 1000; | ||
var pruneRate = options.renderCacheOptions.pruneRate || 10; | ||
var max = options.renderCacheOptions.max || 20 * 1024 * 1024; | ||
var pruneRate = options.renderCacheOptions.pruneRate || 1; | ||
var renderCaches = LRU({ | ||
@@ -122,3 +122,2 @@ max: max, | ||
clean: function() { | ||
console.log('items', renderCaches.itemCount, renderCaches.length); | ||
renderCaches.reset(); | ||
@@ -125,0 +124,0 @@ } |
{ | ||
"name": "yog-swig", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "custom swig template, add some tag or filter ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
25854
665