Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache rates results until then db data will not change #78

Open
anufry opened this issue May 6, 2020 · 3 comments
Open

Cache rates results until then db data will not change #78

anufry opened this issue May 6, 2020 · 3 comments

Comments

@anufry
Copy link

anufry commented May 6, 2020

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

@anufry anufry changed the title Cache rates results until then db data changes Cache rates results until then db data will not change May 6, 2020
@anufry
Copy link
Author

anufry commented May 6, 2020

it will be ok to save cache here:

def get_active_currencies_qs():

and clear it on model save()

@panosl
Copy link
Owner

panosl commented May 8, 2020

it will be ok to save cache here:

def get_active_currencies_qs():

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.

@anufry
Copy link
Author

anufry commented Aug 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants