aurweb/aurweb/routers
moson-mo 3acfb08a0f
feat: cache package search results with Redis
The queries being done on the package search page are quite costly.
(Especially the default one ordered by "Popularity" when navigating to /packages)

Let's add the search results to the Redis cache:
Every result of a search query is being pushed to Redis until we hit our maximum of 50k.
An entry expires after 3 minutes before it's evicted from the cache.
Lifetime an Max values are configurable.

Signed-off-by: moson-mo <mo-son@mailbox.org>
2023-07-04 11:57:56 +02:00
..
__init__.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
accounts.py chore: remove setting AURLANG and AURTZ on account edit 2023-05-26 22:57:46 +02:00
auth.py refactor: remove session_time from user.login 2023-05-26 23:02:38 +02:00
html.py feat: cache package search results with Redis 2023-07-04 11:57:56 +02:00
packages.py feat: cache package search results with Redis 2023-07-04 11:57:56 +02:00
pkgbase.py feat: cancel button for comment editing 2023-03-09 21:48:58 +01:00
requests.py feat: switch requests filter for pkgname to "contains" 2023-06-10 09:40:35 +02:00
rpc.py chore(lint): reformatting after black update 2023-02-06 09:15:18 +01:00
rss.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
sso.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
trusted_user.py chore: rename logging.py and redis.py to avoid circular imports 2022-10-22 18:51:38 +01:00