mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-03 16:10:31 +00:00
Increase cached app TTL to 24 hours. Cause, where is your sense of adventure?
This commit is contained in:
@@ -364,7 +364,7 @@ export async function get_app (options) {
|
|||||||
const cacheApp = async (app) => {
|
const cacheApp = async (app) => {
|
||||||
if ( ! app ) return;
|
if ( ! app ) return;
|
||||||
AppRedisCacheSpace.setCachedApp(app, {
|
AppRedisCacheSpace.setCachedApp(app, {
|
||||||
ttlSeconds: 300,
|
ttlSeconds: 24 * 60 * 60,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const isDecoratedAppCacheEntry = (app) => (
|
const isDecoratedAppCacheEntry = (app) => (
|
||||||
@@ -550,7 +550,7 @@ export const get_apps = spanify('get_apps', async (specifiers, options = {}) =>
|
|||||||
const cacheApp = async (app) => {
|
const cacheApp = async (app) => {
|
||||||
if ( ! app ) return;
|
if ( ! app ) return;
|
||||||
AppRedisCacheSpace.setCachedApp(app, {
|
AppRedisCacheSpace.setCachedApp(app, {
|
||||||
ttlSeconds: 300,
|
ttlSeconds: 24 * 60 * 60,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user