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:
parent
a5d6f17cb5
commit
a9dd65c964
3 changed files with 73 additions and 66 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue