Skip to content

All caches should be cleared after config sync #3022

@jenlampton

Description

@jenlampton

Describe your issue or idea

After a config sync, so many things could have been changed that would require a cache clear, that we should always clear the caches. Even though the code does seem to call backdrop_flush_all_caches() the menu router cache, in particular, is not cleared.

Steps to reproduce (if reporting a bug)

  • Copy all config from active to staging
  • Delete the home page layout.
  • Confirm the home page 404s at home
  • Do a config sync to reinstate the home page
  • attempt to visit the home page path, home

Actual behavior (if reporting a bug)

  • 404

Expected behavior (if reporting a bug)

  • new page should be accessible immediately

To confirm it's a cache clearing problem...

  • Clear all the caches via the link in admin menu
  • attempt to visit the new path testing again
  • confirm the new layout can be seen

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions