Summery Summery
Save data to the cache
Syntax Syntax
Parameters Parameters
- $data
-
(Required) Data to store in the cache. If passed a SimplePie object, only cache the $data property
Return Return
(bool) Successfulness
Source Source
File: wp-includes/SimplePie/Cache/File.php
{ if (file_exists($this->name) && is_writable($this->name) || file_exists($this->location) && is_writable($this->location)) { if ($data instanceof SimplePie) { $data = $data->data; } $data = serialize($data); return (bool) file_put_contents($this->name, $data); } return false; }