Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromrails/rails

Commit56cdf78

Browse files
committed
Refer to 37signals blog post for alternative
According to the rationale atrails#7833 (comment), we should recommend new users to follow DHH's approach outlined athttp://37signals.com/svn/posts/3113-how-key-based-cache-expiration-works.This is the first step, and perhaps in the future we can write some specific recommendations out.
1 parent1c204fc commit56cdf78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎guides/source/caching_with_rails.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ config.action_controller.perform_caching = true
3030

3131
Page caching is a Rails mechanism which allows the request for a generated page to be fulfilled by the webserver (i.e. Apache or nginx), without ever having to go through the Rails stack at all. Obviously, this is super-fast. Unfortunately, it can't be applied to every situation (such as pages that need authentication) and since the webserver is literally just serving a file from the filesystem, cache expiration is an issue that needs to be dealt with.
3232

33-
INFO: Page Caching has been removed from Rails 4. See the[actionpack-page_caching gem](https://github.com/rails/actionpack-page_caching)
33+
INFO: Page Caching has been removed from Rails 4. See the[actionpack-page_caching gem](https://github.com/rails/actionpack-page_caching). See[DHH's key-based cache expiration overview](http://37signals.com/svn/posts/3113-how-key-based-cache-expiration-works) for the newly-preferred method.
3434

3535
###Action Caching
3636

3737
Page Caching cannot be used for actions that have before filters - for example, pages that require authentication. This is where Action Caching comes in. Action Caching works like Page Caching except the incoming web request hits the Rails stack so that before filters can be run on it before the cache is served. This allows authentication and other restrictions to be run while still serving the result of the output from a cached copy.
3838

39-
INFO: Action Caching has been removed from Rails 4. See the[actionpack-action_caching gem](https://github.com/rails/actionpack-action_caching)
39+
INFO: Action Caching has been removed from Rails 4. See the[actionpack-action_caching gem](https://github.com/rails/actionpack-action_caching). See[DHH's key-based cache expiration overview](http://37signals.com/svn/posts/3113-how-key-based-cache-expiration-works) for the newly-preferred method.
4040

4141
###Fragment Caching
4242

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp