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

getNodeTypes should not go to backend on repeated calls #147

Open
dbu opened this issue Apr 7, 2017 · 0 comments
Open

getNodeTypes should not go to backend on repeated calls #147

dbu opened this issue Apr 7, 2017 · 0 comments

Comments

@dbu
Copy link
Member

dbu commented Apr 7, 2017

each call to get a specific node type does a request to jackrabbit. first calling $session->getWorkspace()->getNodeTypeManager()->getAllNodeTypes(); reduces that to a single call which is about the same speed (not very fast though, at least with magnolia).

in jackalope-doctrine-dbal, we have the CachedClient that uses a Doctrine\Common\Cache to cache meta data and other things. i think our best approach would be to convert this CachedClient to a pure decorator pattern, instead of extending a Client, and move it to jackalope/jackalope. then it can be used with jackalope-jackrabbit as well.

(moved here from jackalope/jackalope#312)

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

No branches or pull requests

1 participant