django-currencies icon indicating copy to clipboard operation
django-currencies copied to clipboard

Cache rates results until then db data will not change

Open anufry opened this issue 4 years ago • 3 comments

Now it has so much DB queries as tag occurs in template

anufry avatar May 06 '20 22:05 anufry

it will be ok to save cache here: https://github.com/panosl/django-currencies/blob/ad87df2bc5f3c88726f3108e5323530f3f23398b/currencies/utils.py#L7

and clear it on model save()

anufry avatar May 06 '20 22:05 anufry

it will be ok to save cache here:

https://github.com/panosl/django-currencies/blob/ad87df2bc5f3c88726f3108e5323530f3f23398b/currencies/utils.py#L7

and clear it on model save()

If you want to create a pull request with what you have in mind, we can go over it and see if it can be incorporated.

panosl avatar May 08 '20 14:05 panosl

Hello, I've created pull request, thank you for your attention!

anufry avatar Aug 03 '20 19:08 anufry