A simple code snippet for Rails developers to clear the application cache during development by adding a before_action hook in the ApplicationController. The solution allows cache busting by appending a clear_cache=1 parameter to any URL, making it easy to test changes without restarting the server or manually clearing the cache through the console.

1m read timeFrom avohq.io
Post cover image

Sort: