8000 Don't return Document from runtime cache when `$force` parameter is true in `Document::getByPath()` by jdreesen · Pull Request #11018 · pimcore/pimcore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Don't return Document from runtime cache when $force parameter is true in Document::getByPath() #11018

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

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

jdreesen
Copy link
Contributor

When calling Document::getByPath('/some/path/', true), I'd expect a fresh document loaded from the DB. But as the method has a cache, a cached instance is returned.

Changes in this pull request

When the $force parameter is true, the cache is skipped and the document gets loaded from the DB.