?
This document uses PHP Chinese website manual Release
You can do more elaborate grouping by setting up cache_id groups. This is accomplished
by separating each sub-group with a vertical bar "|" in the cache_id value.
You can have as many sub-groups as you like.
你可以通過(guò)建立cache_id集合做更祥細(xì)的集合體。在cache_id的值里用豎線(xiàn)"|"來(lái)分開(kāi)子集合。你可以盡可能多的包含子集合。
Example 14-9. cache_id groups
|
Technical Note: The cache grouping does NOT use the path to the template as any part of the cache_id. For example, if you have display('themes/blue/index.tpl'), you cannot clear the cache for everything under the "themes/blue" directory. If you want to do that, you must group them in the cache_id, such as display('themes/blue/index.tpl','themes|blue'); Then you can clear the caches for the blue theme with clear_cache(null,'themes|blue');
技術(shù)提示:緩存集合并不像cache_id一樣對(duì)模板使用路徑。比如,如果你display('themes/blue/index.tpl'),那么在"themes/blue"目錄下你并不能清除緩存。想要清除緩存,必須先用cache_id把緩存集合,像這樣display('themes/blue/index.tpl','themes|blue');然后就可以用clear_cache(null,'themes|blue')清除blue theme(藍(lán)色主題?!老外也真會(huì)叫...)下的緩存。