mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2026-08-16 05:54:53 +02:00
371 B
371 B
title, layout
| title | layout |
|---|---|
| Rails features | default |
Page caching
class WeblogController < ActionController::Base
caches_page :show, :new
end
This will generate cache files such as weblog/show/5.html and
weblog/new.html, which match the URLs used that would normally trigger dynamic
page generation