?
本文檔使用 PHP中文網(wǎng)手冊 發(fā)布
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.
在指定模板的緩存存在是返回真。只有在緩存設(shè)置為真時才可用。
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.
如果模板有多個緩存的話,可以通過第二個可選參數(shù)指定緩存號。
Example 13-19. is_cached with multiple-cache template
|