cache categories:cid and cid:<cid>:children

these rarely change, no need to go to db for them
This commit is contained in:
Barış Soner Uşaklı
2018-11-27 19:38:28 -05:00
parent 7357926fe7
commit 00a066985a
15 changed files with 168 additions and 43 deletions

View File

@@ -175,6 +175,8 @@ function setupMockDefaults(callback) {
groups.resetCache();
var postCache = require('../../src/posts/cache');
postCache.reset();
var localCache = require('../../src/cache');
localCache.reset();
next();
},
function (next) {