Hello,
setup
Controller -> Action Index results = Model.all (SQL Call) View Loop through and render partial from results. Call count for result row (SQL Call) Partial Manage result data and add point on Google map
I'm attempting to cache this page so I add caches_page :index to my controller. When I view this page it creates a successful cache of the template (but not the partial). However it still makes all of the sql calls it shouldn't.
By changing it caches_action :index no sql calls are made, but I receive two 'Filter chain halted' errors.
The page renders correctly so I don't know if this is something I should look over or not.
If anyone is able to explain why caches_page isn't working, or where I should go from here on the Filter chain halted, I would greatly appreciate it.
Thanks!