You could try LRU cache,
I think Celery would be a better option though, but the setup is a little more elaborate. Here is a small example,
You could try LRU cache,
I think Celery would be a better option though, but the setup is a little more elaborate. Here is a small example,