I added the code below to my environment.rb file in order to expire my
statically cached pages upon server startup.
#Expire static files that may be cached
[''datagrid/get_parameters.html''].each do |file|
File.delete("#{RAILS_ROOT}/public/#{file}")
end
Are there better schemes to do this out there? This will be executed
every time I fire up a new Mongrel process, correct?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---