GC_Feed_Cache_Transient::save()
最后更新于:2021-11-27 15:07:27
GC_Feed_Cache_Transient::save( SimplePie$data)Sets the transient.
参数
- $data
-
(SimplePie) (Required) Data to save.
响应
(true) Always true.
源文件
文件: gc-includes/class-gc-feed-cache-transient.php
public function save( $data ) {
if ( $data instanceof SimplePie ) {
$data = $data->data;
}
set_transient( $this->name, $data, $this->lifetime );
set_transient( $this->mod_name, time(), $this->lifetime );
return true;
}