Caches data to the filesystem

package SimplePie
subpackage Caching

 Methods

Create a new cache object

__construct(string $location, string $name, string $type) 
inherited_from \SimplePie_Cache_Base::__construct()

Parameters

$location

string

Location string (from SimplePie::$cache_location)

$name

string

Unique ID for the cache

$type

string

Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data

Retrieve the data saved to the cache

load() : array
inherited_from \SimplePie_Cache_Base::load()

Returns

arrayData for SimplePie::$data

Retrieve the last modified time for the cache

mtime() : integer
inherited_from \SimplePie_Cache_Base::mtime()

Returns

integerTimestamp

Save data to the cache

save(array|\SimplePie $data) : boolean
inherited_from \SimplePie_Cache_Base::save()

Parameters

$data

array\SimplePie

Data to store in the cache. If passed a SimplePie object, only cache the $data property

Returns

booleanSuccessfulness

Set the last modified time to the current time

touch() : boolean
inherited_from \SimplePie_Cache_Base::touch()

Returns

booleanSuccess status

 Properties

 

File extension

$extension : string

Default

 

Filename

$filename : string

Default

 

Location string

$location : string

Default

see
 

File path

$name : string

Default