mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
set lru cache to 10 hours
This commit is contained in:
parent
72fdadf84c
commit
74ceea14dd
1 changed files with 2 additions and 1 deletions
|
@ -6,8 +6,9 @@ fs = require 'fs'
|
||||||
settings = require("settings-sharelatex")
|
settings = require("settings-sharelatex")
|
||||||
Path = require("path")
|
Path = require("path")
|
||||||
|
|
||||||
cache = LRU(10000)
|
|
||||||
OneMinute = 60 * 1000
|
OneMinute = 60 * 1000
|
||||||
|
opts = {max:10000, maxAge: OneMinute * 60 * 10}
|
||||||
|
cache = LRU(opts)
|
||||||
|
|
||||||
cacheFsPath = Path.resolve(settings.cacheDir, "spell.cache")
|
cacheFsPath = Path.resolve(settings.cacheDir, "spell.cache")
|
||||||
cacheFsPathTmp = cacheFsPath + ".tmp"
|
cacheFsPathTmp = cacheFsPath + ".tmp"
|
||||||
|
|
Loading…
Reference in a new issue