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

Update the DBAFS cache when creating files #7029

Merged
merged 4 commits into from Mar 20, 2024

Conversation

m-vo
Copy link
Member

@m-vo m-vo commented Mar 20, 2024

I agree with the general idea of the changes in #6973. IMHO we should keep generating cache entries lazy, though + the fix must also be applied to 4.13. This is why I created this PR as an alternative.

/cc @Toflar

@m-vo m-vo added the bug label Mar 20, 2024
@m-vo m-vo added this to the 4.13 milestone Mar 20, 2024
@m-vo m-vo requested a review from Toflar March 20, 2024 10:16
@m-vo m-vo self-assigned this Mar 20, 2024
Copy link
Member

@Toflar Toflar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my case, the listContents() did also not work after writing, which is why I had to change this line (https://github.com/contao/contao/pull/6973/files#diff-29a707fd9a3ce791f30b7313fbf90c20eb457d0383b681eea3d6d3c7fa2f9589R158). But maybe with unsetting the records, this works now. In any case, we should probably add a test for that on top, wdyt?

Toflar
Toflar previously approved these changes Mar 20, 2024
Copy link
Member

@Toflar Toflar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and fixes the issue 😊 ❤️

@leofeyer leofeyer changed the title Fix DBAFS cache not being updated when creating files Update the DBAFS cache when creating files Mar 20, 2024
@leofeyer leofeyer enabled auto-merge (squash) March 20, 2024 11:03
@leofeyer
Copy link
Member

Thank you @m-vo.

@leofeyer leofeyer merged commit 1b93296 into contao:4.13 Mar 20, 2024
17 checks passed
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.

None yet

3 participants