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

Fix order manager caching #821

Merged
merged 3 commits into from
May 11, 2020
Merged

Conversation

kvasbo
Copy link
Contributor

@kvasbo kvasbo commented Apr 23, 2020

The current order manager cache implementation is not working, as it does not take many of the arguments into account. I have replaced it with a simpler and non-manual cache key generator that will work for any set of parameters.

kvasbo added 3 commits April 23, 2020 11:42
The existing cache key does not take into account all parameters, leading to caching errors when e.g. loading page two (you will get a hit on the cache for the first page that was viewed and therefore cached).

This change automatically uses the entire args array to create the key, ensuring uniqueness.
includes/Order/Manager.php Show resolved Hide resolved
@sabbir1991 sabbir1991 merged commit b3bf1fd into getdokan:develop May 11, 2020
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

Successfully merging this pull request may close these issues.

3 participants