1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-25 16:19:44 +02:00

add cache

This commit is contained in:
Taly 2022-09-07 18:40:28 +03:00
parent a5d6f17cb5
commit a9dd65c964
3 changed files with 73 additions and 66 deletions

View file

@ -15,9 +15,11 @@ router.get('/search', async (req: Request, res: Response) => {
/** Start measuring search time */
// const startTime = performance.now();
const search = new Search();
// const search = new Search();
//
// const searchResponse = await search.query(searchString);
const searchResponse = await search.query(searchString);
const searchResponse = await Search.query(searchString);
/** End measuring search time */
// const endTime = performance.now();