Combined application of a series of caching techniques

Source: Internet
Author: User
The combination of a series of caching techniques one, use HTTP protocol       simulate static page header control Last-modify, Expires, Pragma, Cache-control HTTP header information, Use 302 messages to tell the browser to continue to use local cache       generally this cache is used within a few seconds in the control of dynamic pages, appropriate to reduce the burden of the server two, the use of reverse proxy       This is applied to a large portal application. The essence is also cached page content, but distributed to more than one output server, dispersed the pressure. Third, the use of page caching and content caching        page caching and browser caching content is basically similar, but only in the server cache, not each time to be rendered again, suitable for the Web home page, etc. allow a certain period of time unchanged pages         (This is our common template caching technology)        Of course, this node also has content caching methods that directly generate static pages. Data caching       Data caching, in other words, is relative to the data storage, not every time from the actual storage to get the latest data, but organized to cache can be stored in the data line on the relatively fast physical devices       such as: memory. Data organization, demand is more project, page and other specific circumstances and detailed development.       If it is in the MVC development pattern, there is a mechanism to encapsulate caching in model, and there is a mechanism in V designed to communicate V to M in the middle, which joins V to M call caching mechanisms     (I am currently developing a project that is to use this way, the advantage is that the control is more delicate, the disadvantage is that the V-layer developers have requirements)       in this node can use a lot of cache tools, common have memache, APC, etc. ... To be blunt is to use memory to exchange time ... V. Query-cache       This is the database query cache, which is realized by the mechanism of the database itself; developers or DBAs are mainly in the configuration of database services, more project application, specific configuration.       (here by the way: Good developers should also be a good DBA) VI, Alternative PHP cache (APC) alternative PHP cache (APC) is a free public optimized code cache for PHP. It is used to provide a free, open and robust architecture to cache and optimize PHP's intermediate code.

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.