FIX: Clear theme caches after transaction is committed (PR #12954)

GitHub

Interesting, seems OK to me, shall we merge?

I don’t think this actually fixed the issue @featheredtoast was seeing. It has now been resolved another way.