django-currencies
django-currencies copied to clipboard
Cache rates results until then db data will not change
Now it has so much DB queries as tag occurs in template
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()
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.
Hello, I've created pull request, thank you for your attention!