- Issue created by @krystalcode
- π΅πͺPeru krystalcode
Implementing the quick - but less efficient - solution for now.
- Status changed to Needs work
18 days ago 10:34am 11 August 2025 - π¬π§United Kingdom alexpott πͺπΊπ
Interesting bug and yeah clearing all redirects out of the cache when generating or deleting redirects does feel sub-optimal. I feel that to fix this bug properly we should be adding test coverage to ensure we've got the bug and any edge cases we can imagine covered. Also adding test coverage will make it easier to move to a better solution.
- π¬π§United Kingdom alexpott πͺπΊπ
Going to see if I can write a failing test.
- π¬π§United Kingdom alexpott πͺπΊπ
I've found the bug here. It's because we're not adding all the redirects involved when processing a redirect chain - we're only adding the last one. Therefore when we update another redirect in the chain the cache is not correctly invalidated. Adding all the redirects in makes the system work as expected.
- π¨πSwitzerland berdir Switzerland
Added a comment on the phpstan thing we discussed.
-
berdir β
committed b38998f8 on 8.x-1.x authored by
alexpott β
Issue #3525917 by alexpott, krystalcode: Invalidate cached responses...
-
berdir β
committed b38998f8 on 8.x-1.x authored by
alexpott β
- π¨πSwitzerland berdir Switzerland
Yes, point for you in that argument I guess ;)
Automatically closed - issue fixed for 2 weeks with no activity.