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

Clearing cache forces project config sync #5220

Open
jasonmccallister opened this issue Nov 7, 2019 · 2 comments
Open

Clearing cache forces project config sync #5220

jasonmccallister opened this issue Nov 7, 2019 · 2 comments
Assignees

Comments

@jasonmccallister
Copy link
Member

@jasonmccallister jasonmccallister commented Nov 7, 2019

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

  1. Load the website
  2. Clear cache
  3. Visit front end and see 503 ServiceUnavailable Exception
  4. Sync changes
  5. Verify the site now loads

Additional info

  • Craft version: 3.3.15
  • PHP version: 7.3.9
  • Database driver & version: MySQL 5.6.45
@brandonkelly

This comment has been minimized.

Copy link
Member

@brandonkelly brandonkelly commented Nov 7, 2019

Craft needs to check if anything changed in project.yaml on each request. Most of the time, it will just check the modify date for the file and compare that to its cached record of the last modified date.

If you clear caches, Craft loses track of its record of the last modification date for config/project.yaml, so it will need to do a deeper dive into the file to see if anything has changed.

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 composer.json, composer.lock, and config/project.yaml files, plus a database backup, over to support@craftcms.com so we can look into this?

@jasonmccallister

This comment has been minimized.

Copy link
Member Author

@jasonmccallister jasonmccallister commented Nov 7, 2019

Will do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.