diff --git a/mod/workspace/cache.js b/mod/workspace/cache.js index e2dd8f98a2..15d20a389a 100644 --- a/mod/workspace/cache.js +++ b/mod/workspace/cache.js @@ -23,8 +23,6 @@ module.exports = () => { // current time minus cached timestamp exceeds WORKSPACE_AGE cache = null - logger(`Workspace cache expired;`, 'workspace') - return cacheWorkspace() } @@ -97,6 +95,8 @@ async function cacheWorkspace() { console.warn(`Default plugins should be defined in the default workspace.locale{}`) } + logger(`Workspace cached;`, 'workspace') + timestamp = Date.now() cache = workspace