mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
TTL Cache (#10816)
* refactor: move src/cacheCreate.js to src/cache/lru.js * fix: call new library location for lru cache creator * feat: add ttl cache * fix: update upload throttler to use ttl cache instead of lru cache * chore: add missing dependency * fix: avoid pubsub conflicts * fix: use get instead of peek, which is not available in ttl-cache
This commit is contained in:
@@ -14,7 +14,7 @@ const utils = require('./utils');
|
||||
const plugins = require('./plugins');
|
||||
const meta = require('./meta');
|
||||
const pubsub = require('./pubsub');
|
||||
const cacheCreate = require('./cacheCreate');
|
||||
const cacheCreate = require('./cache/lru');
|
||||
|
||||
const Analytics = module.exports;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user