mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
version 2.0.1 84b42ab
This commit is contained in:
19
docs/guide/caching-overview.md
Normal file
19
docs/guide/caching-overview.md
Normal file
@ -0,0 +1,19 @@
|
||||
Caching
|
||||
=======
|
||||
|
||||
Caching is a cheap and effective way to improve the performance of a Web application. By storing relatively
|
||||
static data in cache and serving it from cache when requested, the application saves the time that would be
|
||||
required to generate the data from scratch every time.
|
||||
|
||||
Caching can occur at different levels and places in a Web application. On the server side, at the lower level,
|
||||
cache may be used to store basic data, such as a list of most recent article information fetched from database;
|
||||
and at the higher level, cache may be used to store fragments or whole of Web pages, such as the rendering result
|
||||
of the most recent articles. On the client side, HTTP caching may be used to keep most recently visited page content in
|
||||
the browser cache.
|
||||
|
||||
Yii supports all these caching mechanisms:
|
||||
|
||||
* [Data caching](caching-data.md)
|
||||
* [Fragment caching](caching-fragment.md)
|
||||
* [Page caching](caching-page.md)
|
||||
* [HTTP caching](caching-http.md)
|
Reference in New Issue
Block a user