mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
refactor: move requires down
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
const cacheCreate = require('../cache/lru');
|
||||
const meta = require('../meta');
|
||||
|
||||
let cache = null;
|
||||
|
||||
exports.getOrCreate = function () {
|
||||
if (!cache) {
|
||||
const cacheCreate = require('../cache/lru');
|
||||
const meta = require('../meta');
|
||||
cache = cacheCreate({
|
||||
name: 'post',
|
||||
maxSize: meta.config.postCacheSize,
|
||||
|
||||
Reference in New Issue
Block a user