我也可以选择在rhtml页面中指定超时和缓存方法,但我更愿意使用基于控制器的方法。
I could have also chosen to specify the timeout within the RHTML page along with the cache method, but we prefer the controller-based method.
页面和分段缓存二者均在控制器级别发生。
Both page and fragment caching occur at the controller level. You need to tell rails.
页面和分段缓存二者均在控制器级别发生。
Both page and fragment caching occur at the controller level. You need to tell rails.
应用推荐