Cache meta
This commit is contained in:
parent
8a55bdd89d
commit
5aa5896b22
34 changed files with 62 additions and 55 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import * as Router from 'koa-router';
|
||||
import config from '../config';
|
||||
import fetchMeta from '../misc/fetch-meta';
|
||||
import { fetchMeta } from '../misc/fetch-meta';
|
||||
// import User from '../models/user';
|
||||
import { name as softwareName, version, repository } from '../../package.json';
|
||||
// import Note from '../models/note';
|
||||
|
|
@ -44,7 +44,7 @@ const nodeinfo2 = async () => {
|
|||
// localPosts,
|
||||
// localComments
|
||||
] = await Promise.all([
|
||||
fetchMeta(),
|
||||
fetchMeta(true),
|
||||
// User.count({ host: null }),
|
||||
// User.count({ host: null, updatedAt: { $gt: new Date(Date.now() - 15552000000) } }),
|
||||
// User.count({ host: null, updatedAt: { $gt: new Date(Date.now() - 2592000000) } }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue