GC_Feed_Cache::create()
最后更新于:2021-11-27 14:58:06
GC_Feed_Cache::create( string$location, string$filename, string$extension)Creates a new SimplePie_Cache object.
参数
- $location
-
(string) (Required) URL location (scheme is used to determine handler).
- $filename
-
(string) (Required) Unique identifier for cache object.
- $extension
-
(string) (Required) ‘spi’ or ‘spc’.
响应
(GC_Feed_Cache_Transient) Feed cache handler object that uses transients.
源文件
文件: gc-includes/class-gc-feed-cache.php
public function create( $location, $filename, $extension ) {
return new GC_Feed_Cache_Transient( $location, $filename, $extension );
}