DEV Community

Discussion on: Rails, Hotwire, CableReady, and StimulusReflex are BFFs

 
existentialmutt profile image
Rafe Rosen • Edited

I believe Rails uses a digest of the file contents as part of the cache key for partial templates, so any changes to templates will invalidate the cache if the templates are being cached directly.

I'll also keep a rails console open and call Rails.cache.clear when I need to reset things.