Project

General

Profile

Task #1639

Cache search result needed for canonical url

Added by Ram Kordale about 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09/13/2021
Due date:
09/13/2021
% Done:

100%

Estimated time:

Description

Accessing a canonical URL results in a search for 'python' in a standard set of books. Every time someone accesses this URL from Google search and every access from GoogleBot results in this search. Each search returns the exact same result.

Today, we go to ES for each of these requests. Instead, store it in memory (just like we store autocomplete and autocomplete2 settings) and do not go to ES if it is available in memory.

For now, we need to do this for the 6 books in production as future books will not have this issue because of ticket 1638.

Of course, when these books are updated, the "cache" should be deleted.

Also available in: Atom PDF