-
Notifications
You must be signed in to change notification settings - Fork 60
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
[WIP] Cache queries node types #281
base: 2.x
Are you sure you want to change the base?
Conversation
@@ -147,10 +205,14 @@ public function getAccessibleWorkspaceNames() | |||
*/ | |||
public function getNode($path) | |||
{ | |||
if (empty($this->caches['nodes'])) { | |||
return parent::getNode($path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then how will this ever get cached?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct .. but the Client should also do any real work for this either .. so I figured its faster to do it like this, than to even bother to look at the cache backend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually misread this .. I made this change since in theory a user can have no caching for nodes active.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also this change is actually part of #280
to review this maybe better to look at cache_queries...cache_queries_node_types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think i understand now. but anyway, i will wait for #280 to be merged and then we can rebase this one. will make it easier to review.
5c6691c
to
c8c4c63
Compare
c8c4c63
to
578f599
Compare
needs a rebase now that #280 is merged. |
includes #280, requires jackalope/jackalope#287
so for review maybe easier to look at cache_queries...cache_queries_node_types