Skip to content

Commit

Permalink
fixes lru cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sintaxi committed Sep 9, 2022
1 parent 62f5d94 commit 84fd6d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/helpers/memoized.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

var helpers = require('./raw')
var lru = require("lru-cache")
var cache = lru(500)
var Lru = require("lru-cache")
var cache = new Lru({ ttl: 500, max: 2000 })


/**
Expand Down Expand Up @@ -33,4 +33,4 @@ exports.walkData = helpers.walkData
exports.isTemplate = helpers.isTemplate
exports.isStylesheet = helpers.isStylesheet
exports.isJavaScript = helpers.isJavaScript
exports.needsBrowserify = helpers.needsBrowserify
exports.needsBrowserify = helpers.needsBrowserify

0 comments on commit 84fd6d9

Please sign in to comment.