I have this in my controller:
def frontpage
@sections = Section.all
end
In production environment, the query seems to be cached between requests. Until I restart an app, @sections
is always the same. Why and how do I fix this? I should also mention, I use Postgres in production, could it be the reason?