开发者

application cache with page cache in php?

Do we get any undesired results when we use application cache in combination开发者_运维技巧 with page cache in php?

Thanks & Regards, Satya


Using multiple layers of caching is often a good idea.

I'm going to assume that:

  • "application cache" means a key-value cache like Memcached or Xcache
  • "page cache" means caching the entire page output, via PHP or in an HTTP proxy.

In this case, it's a great idea to use the two together. The "page cache" is a course-grained cache that will frequently miss, but cache hits will have little to no work to do. The "application cache" is more fine grained and will more frequently hit, but some work is still required to assemble this into a full page.

I hope this comes close to what you were asking.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜