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

Read column types from database if cache is missing #5428

Merged
merged 3 commits into from Nov 15, 2022

Conversation

ausi
Copy link
Member

@ausi ausi commented Oct 25, 2022

Alternative to #5349
Fixes #5029 (comment)

In debug mode, or when the type cache is missing, we now retrieve the type information directly from the database instead of loading all DCAs.

The cache warmer still uses the information from the DCA, because the database might not be up to date when warming the cache.

@leofeyer
Copy link
Member

I definitely like this better than #5349. 👍

@ausi ausi requested a review from fritzmg October 26, 2022 20:54
m-vo
m-vo previously approved these changes Nov 12, 2022
@leofeyer leofeyer linked an issue Nov 15, 2022 that may be closed by this pull request
@leofeyer leofeyer merged commit 0e67ddc into contao:5.0 Nov 15, 2022
@leofeyer
Copy link
Member

Thank you @ausi.

@aschempp
Copy link
Member

can we use this for Widget::getDefault/empty value as well?

@ausi
Copy link
Member Author

ausi commented Nov 19, 2022

can we use this for Widget::getDefault/empty value as well?

IMO yes, extending this with the required information should work fine. Can you create a new ticket for that?

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

Successfully merging this pull request may close these issues.

Custom labels for operations in DCA not respected anymore
4 participants