SimplePie: PHP-based RSS and Atom feed handling
 
  • Overview
  • Demo
  • Blog
  • Download
  • Documentation
  • API Docs
  • Support
  • Issue Tracker
  • FAQ
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • SimplePie
    • API
    • Caching
    • HTTP
    • Parsing

Classes

  • SimplePie_Cache
  • SimplePie_Cache_DB
  • SimplePie_Cache_File
  • SimplePie_Cache_Memcache
  • SimplePie_Cache_MySQL

Interfaces

  • SimplePie_Cache_Base

Class SimplePie_Cache_File

Caches data to the filesystem

SimplePie_Cache_File implements SimplePie_Cache_Base
Package: SimplePie\Caching
Copyright: 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: BSD License
Author: Ryan Parman
Author: Geoffrey Sneddon
Author: Ryan McCue
Located at SimplePie/Cache/File.php
Methods summary
public
# __construct( string $location, string $name, string $type )

Create a new cache object

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

Implementation of

SimplePie_Cache_Base::__construct
public boolean
# save( array|SimplePie $data )

Save data to the cache

Parameters

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

Returns

boolean
Successfulness

Implementation of

SimplePie_Cache_Base::save
public array
# load( )

Retrieve the data saved to the cache

Returns

array
Data for SimplePie::$data

Implementation of

SimplePie_Cache_Base::load
public integer
# mtime( )

Retrieve the last modified time for the cache

Returns

integer
Timestamp

Implementation of

SimplePie_Cache_Base::mtime
public boolean
# touch( )

Set the last modified time to the current time

Returns

boolean
Success status

Implementation of

SimplePie_Cache_Base::touch
public boolean
# unlink( )

Remove the cache

Returns

boolean
Success status

Implementation of

SimplePie_Cache_Base::unlink
Constants inherited from SimplePie_Cache_Base
TYPE_FEED, TYPE_IMAGE
Properties summary
protected string $location
#

Location string

See

SimplePie::$cache_location
protected string $filename
#

Filename

protected string $extension
#

File extension

protected string $name
#

File path

Show some love! Wishlists for Geoffrey, Ryan P., and Ryan M.

SimplePie is © 2004–2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue and contributors. Licensed under the BSD License. Hosted thanks to Matt Mullenweg, API documentation generated by ApiGen 2.6.1. Variation on the Feed Icon by Wolfgang Bartelme.