diff --git a/src/backend/src/helpers.js b/src/backend/src/helpers.js index 6cacc773a..ea893316d 100644 --- a/src/backend/src/helpers.js +++ b/src/backend/src/helpers.js @@ -365,6 +365,10 @@ async function refresh_associations_cache(){ app = app && app[0] ? app[0] : null; if ( app === null ) return null; + + kv.set(`apps:uid:${app.uid}`, app, { EX: 30 }); + kv.set(`apps:name:${app.name}`, app, { EX: 30 }); + kv.set(`apps:id:${app.id}`, app, { EX: 30 }); // shallow clone because we use the `delete` operator // and it corrupts the cache otherwise