mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
refactor: posts cache to get rid of require in functions
This commit is contained in:
@@ -740,7 +740,7 @@ describe('socket.io', () => {
|
||||
|
||||
it('should toggle caches', async () => {
|
||||
const caches = {
|
||||
post: require('../src/posts/cache'),
|
||||
post: require('../src/posts/cache').getOrCreate(),
|
||||
object: require('../src/database').objectCache,
|
||||
group: require('../src/groups').cache,
|
||||
local: require('../src/cache'),
|
||||
|
||||
Reference in New Issue
Block a user