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
Clearing cache forces project config sync #5220
Comments
Craft needs to check if anything changed in If you clear caches, Craft loses track of its record of the last modification date for It should only be asking you to sync new changes if it finds that something actually did change, though – which is working as expected on my end. So something must not be getting synced correctly, for some reason. Can you please send your |
Will do! |
We are also seeing this happen after updating to Craft 3.3.19 - was there any resolution to this? |
@lukebailey Not yet, but will be before 3.4 release! |
As a follow up we only see the issue when cleearing the Data caches, others seem to work as expected |
@lukebailey I'm unable to reproduce this locally. Is this happening on an install where it's possible to get CP and FTP access to debug further? If so, could you get in touch via support@craftcms.com referencing this issue? |
Sure have emailed a response |
We were able to reproduce this, and in our case it was because a worker environment for the site was accidentally configured to point to a different Craft install’s database, but used the correct Redis cache DB. So if the worker happened to be the first thing to load the project config on empty cache, it would pull it from the wrong DB, then the query results would get cached to the right Redis DB, and then the following web request for the site would think that project.yaml was out of date, as compared to the other Craft install’s That same thing happening for you @lukebailey? 🙃 |
Thanks @brandonkelly but our environments all point to an single RDS cluster endpoint. I can't see how the above would be the cause in our situation, however as of this morning the issue appears to have resolved itself. Mostly likely a caching issue somewhere in the chain but stuggling to diagnose further - as a side thought would it be possible add some logging or display (on the sync prompt?) as to exactly what the project config thinks has changed. Wouldn't require any action but just useful for future situations like this. |
@lukebailey I'm not sure. Other than debugging this issue that happened once and cannot be reproduced, not sure if there is much use in there? Also, as a debugging need, this is "sort of" addressed, actually. Just recalled that there should be backups in the |
Description
Ok, I thought I was crazy but I just confirmed it. I was working locally in Docker and I kept getting the
Changes to project.yaml must be applied to the loaded project config.
prompt. It turns out this is happening when I clear caches.Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: