-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
GroupedSelection: Rows are refetched when cache is invalid [Closes #15] #59
base: master
Are you sure you want to change the base?
Conversation
Tests are failing… |
I think that problem #15 is implementation of But I still cannot find the reason why sometimes cache is not valid. Problem occurs SOMETIMES after deployment & cache clean-up & I've made the simpliest change now in I can't write tests for invalid cache. When I fixed the problem, previous tests with storage mock failed. |
My knowledge in poor too, I'll try to understand it, but it will not be soon… |
0fc7ac2
to
7194522
Compare
6c43c50
to
6690dde
Compare
See #15
Currently we use something like this patch in projects and it seems fine.
GroupedSelection::execute
refetches data only whenisset($this->refCacheCurrent['data']) === TRUE
but sometimes this cache is empty and$this->rows === NULL
-> I get errors described in #15
With this patch, it's OK.
I consider this code only as temporary fix. I don't know NDB too much.