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