Rails page cache expires automatically after a certain amount of time
2 answers
Set up a cron job to remove it:
cd /home/user/apps/myapp/current/public/ && rm sitemap.xml
If you use every time this should do the trick:
every 3.days, :at => '1:00am' do
command "cd /home/user/apps/myapp/current/public/ && rm sitemap.xml"
end
If you want to recover the file, add the following immediately:
&& curl http://www.example.com/sitemap.xml
+5
source to share