Building a high-performance web site Reading Notes: Dynamic Content caching

Source: Internet
Author: User

Dynamic Content caching mechanisms include full page caching, partial caching, and data caching. Cache focuses more on policies, that is, the cache hit rate.

 

1. Page Cache

For dynamic web pages, the cached content is actually the HTML output by dynamic web pages.

1.1 smarty Cache

Using smarty cache, reading cached files on a disk consumes a lot of disk I/O overhead and CPU and memory swap overhead.

1.2 APC & xcache & memcache memory cache

The APC cache and xcache cache are very efficient and use local memory to store cached data.

Memcache provides better storage scalability and can be used to build multiple cache servers.

2. Local no cache

Use the register_block method of smarty and the {dynamic} tag.

3. Static content

3.1 direct access to cache

Fastest speed

3.2 update policy

There are two types of static content update policies: (1) regenerate static content during data update. (2) regularly regenerate static content

3.3 Local static

SSI Technology

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.