caching-overview.md 954 Bytes
Newer Older
Alexander Makarov committed
1 2 3
Caching
=======

Qiang Xue committed
4 5
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
Qiang Xue committed
6
required to generate the data from scratch every time.
Qiang Xue committed
7

Qiang Xue committed
8
Caching can occur at different levels and places in a Web application. On the server side, at the lower level,
Qiang Xue committed
9
cache may be used to store basic data, such as a list of most recent article information fetched from database;
10 11
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
Qiang Xue committed
12
the browser cache.
Larry Ullman committed
13

Qiang Xue committed
14
Yii supports all these caching mechanisms:
Larry Ullman committed
15

Qiang Xue committed
16
* [Data caching](caching-data.md)
17 18
* [Fragment caching](caching-fragment.md)
* [Page caching](caching-page.md)
Qiang Xue committed
19
* [HTTP caching](caching-http.md)