1
を更新するためにcronのページ:リクエスト私はHerokuの上でHTTPキャッシュ使用キャッシュ
def homepage
response.headers['Cache-Control'] = 'public, max-age=86340'
...
end
は、私はまた、Herokuのの無料のcronアドオンを追加しました:
desc "This task is called by the Heroku cron add-on"
task :cron => :environment do
if Time.now.hour == 0 # run at midnight
# I want to request a page here
end
end
あなたは私が内部に何を置くべきを教えてもらえこのファイルはページをリクエストするためのものですか?
How to force fragment cache on rails from cron schedule? 回答には例がありません。