?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
void clear_cache
(string
template [, string cache id [, string compile id [, int expire time]]])
This clears the cache for a specific template. If you have multiple
caches for this template, you can clear a specific cache by supplying
the cache id as the second parameter. You can also pass a compile id as
a third parameter. You can "group" templates together so they can be
removed as a group. See the caching section
for more information. As an optional fourth parameter, you can supply a
minimum age in seconds the cache file must be before it will get
cleared.
清除指定模板的緩存。如果這個模板有多個緩存,你可以用第二個參數(shù)指定要清除緩存的緩存號,還可以通過第三個參數(shù)指定編譯號。你可以把模板分組,以
便可以方便的清除一組緩存。更多的信息可以查看緩存部分。第四個參數(shù)是可選的,用來指定超過某一
時間(以秒為單位)的緩存才會被清除。
Example 13-8. clear_cache
|