Rails 2.3 - How to prevent a browser from caching a partial? -
Rails 2.3 - How to prevent a browser from caching a partial? -
i have cron job generates block of static html code (saved erb template) every 60 minutes, block shows recent 20 products have been added clients product catalogue.
my code renders block partial:
<%= render :partial => "/products/partials/most_recent_products" %>
the problem partial getting cached users browsers come & browse site.
does know how add together sort of cache-buster here forcefulness partial code reloaded upon each visit users?
i've read lots of instructions doing on individual page or sitewide basis having problems figuring out how can done partial.
that's not browser cache, rails. when runs in production environment - caches erb files, simpliest thing restart rails application. think can create task without changing erb template file. can provide more info needs?
ruby-on-rails caching
Comments
Post a Comment