Caches data to a MySQL database
Registered for URLs with the "mysql" protocol
For example, mysql://root:password@localhost:3306/mydb?prefix=sp_ will
connect to the mydb database on localhost on port 3306, with the user
root and the password password. All tables will be prefixed with sp_
| package | SimplePie | 
|---|---|
| subpackage | Caching | 
| inherited_from | \SimplePie_Cache_DB | 
__construct(string $location, string $name, string $type)
stringLocation string (from SimplePie::$cache_location)
stringUnique ID for the cache
stringEither TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
load() : array
arrayData for SimplePie::$datamtime() : integer
integerTimestampsave(array|\SimplePie $data) : boolean
array\SimplePieData to store in the cache. If passed a SimplePie object, only cache the $data property
booleanSuccessfulnesstouch() : boolean
booleanSuccess statusunlink() : boolean
booleanSuccess statusprepare_simplepie_object_for_cache(\SimplePie $data) : array
Converts a given \SimplePie object into data to be stored
\SimplePie
arrayFirst item is the serialized data for storage, second item is the unique ID for this item$id : string
$mysql : \PDO