Updating cache to 1 hour.
This commit is contained in:
parent
ee345af60d
commit
8fbbba16ee
|
@ -8,6 +8,8 @@ exports.CacheKeys = {
|
|||
|
||||
exports.TTL = {
|
||||
ONE_MINUTE: 600,
|
||||
ONE_HOUR: 3600,
|
||||
ONE_DAY: 86400,
|
||||
}
|
||||
|
||||
function generateTenantKey(key) {
|
||||
|
|
|
@ -256,10 +256,7 @@ exports.configChecklist = async function (ctx) {
|
|||
const tenantId = getTenantId()
|
||||
|
||||
try {
|
||||
ctx.body = await withCache(
|
||||
CacheKeys.CHECKLIST,
|
||||
TTL.ONE_MINUTE,
|
||||
async () => {
|
||||
ctx.body = await withCache(CacheKeys.CHECKLIST, TTL.ONE_HOUR, async () => {
|
||||
let apps = []
|
||||
if (!env.MULTI_TENANCY || tenantId) {
|
||||
// Apps exist
|
||||
|
@ -310,8 +307,7 @@ exports.configChecklist = async function (ctx) {
|
|||
link: "/builder/portal/manage/auth",
|
||||
},
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
} catch (err) {
|
||||
ctx.throw(err.status, err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue