Problem/Motivation

When you change the component library URL at admin /admin/config/system/sdc-component-library you have to manually flush the caches to get the change to take hold. Ideally on form save we would flush the route cache to reduce any confusion or friction for users of the module. Setting as minor as currently you can just flush the cache manually so nothing is "broken" as such.

Steps to reproduce

  1. Go to /admin/config/system/sdc-component-library.
  2. Change the url.
  3. Save the form.
  4. Existing component library route continues to work. New one does not.
  5. Flush caches.
  6. Now it works.

Proposed resolution

Flush the route cache on form save.

Remaining tasks

...

User interface changes

None.

API changes

None.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

d.fisher created an issue. See original summary.

d.fisher’s picture

Status: Active » Needs review

I think this fixes it. It works for me. If anyone can review that would be great.

barry_fisher made their first commit to this issue’s fork.

d.fisher’s picture

Status: Needs review » Reviewed & tested by the community

Thanks. Looks good. Marking RTBC and will roll out next week if there's no objections.

d.fisher’s picture

Gonna go ahead and commit this.

d.fisher’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.