SimplePie_Cache_MySQL
Caches data to a MySQL database
- Full name:
\SimplePie_Cache_MySQL
- Parent class:
\SimplePie\Cache\MySQL
- Warning: this class is deprecated. This means that this class will likely be removed in a future version.
Inherited methods
prepare_simplepie_object_for_cache
Helper for database conversion
Converts a given {@see \SimplePie\Cache\SimplePie} object into data to be stored
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
\SimplePie\SimplePie |
Return Value:
First item is the serialized data for storage, second item is the unique ID for this item
__construct
Create a new cache object
public __construct(string $location, string $name, \SimplePie\Cache\Base::TYPE_FEED|\SimplePie\Cache\Base::TYPE_IMAGE $type): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$location |
string | Location string (from SimplePie::$cache_location) |
$name |
string | Unique ID for the cache |
$type |
\SimplePie\Cache\Base::TYPE_FEED|\SimplePie\Cache\Base::TYPE_IMAGE | Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data |
save
Save data to the cache
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
array|\SimplePie\SimplePie | Data to store in the cache. If passed a SimplePie object, only cache the $data property |
Return Value:
Successfulness
load
Retrieve the data saved to the cache
Return Value:
Data for SimplePie::$data
mtime
Retrieve the last modified time for the cache
Return Value:
Timestamp
touch
Set the last modified time to the current time
Return Value:
Success status
unlink
Remove the cache
Return Value:
Success status
Automatically generated on 2025-03-18