©
This document uses PHP Chinese website manual Release
void is_cached
(string
template, [string cache_id])
This returns true if there is a valid cache for this template. This
only works if caching is set to
true.
在指定模板的缓存存在是返回真。只有在缓存设置为真时才可用。
Example 13-18. is_cached
|
You can also pass a cache id as an an optional second parameter in
case you want multiple caches for the given template.
如果模板有多个缓存的话,可以通过第二个可选参数指定缓存号。
Example 13-19. is_cached with multiple-cache template
|