mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-10 06:30:47 +01:00
fix popular cache for guests
This commit is contained in:
@@ -74,7 +74,7 @@ popularController.get = function (req, res, next) {
|
||||
}
|
||||
|
||||
if (!req.loggedIn) {
|
||||
anonCache[term] = {};
|
||||
anonCache[term] = anonCache[term] || {};
|
||||
anonCache[term][page] = data;
|
||||
lastUpdateTime = Date.now();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user