diff options
| author | Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> | 2019-05-25 08:35:16 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-05-25 08:35:16 +0900 |
| commit | 7e7f94d685b0158e1f5fb800dcbc9b863b6bd6bd (patch) | |
| tree | c6a787049dec1ffa656f2a4008cad936ee88a5b4 /src/server/api/endpoints/meta.ts | |
| parent | Show page title (diff) | |
| download | sharkey-7e7f94d685b0158e1f5fb800dcbc9b863b6bd6bd.tar.gz sharkey-7e7f94d685b0158e1f5fb800dcbc9b863b6bd6bd.tar.bz2 sharkey-7e7f94d685b0158e1f5fb800dcbc9b863b6bd6bd.zip | |
Enable query result cache for meta / stats / hashtags trend (#4978)
Diffstat (limited to 'src/server/api/endpoints/meta.ts')
| -rw-r--r-- | src/server/api/endpoints/meta.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 4f418c63c1..d18543f56a 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -94,7 +94,7 @@ export const meta = { export default define(meta, async (ps, me) => { const instance = await fetchMeta(true); - const emojis = await Emojis.find({ host: null }); + const emojis = await Emojis.find({ where: { host: null }, cache: 3600000 }); // 1 hour const response: any = { maintainerName: instance.maintainerName, |