WordPress at Your Fingertips
function is not described

SimplePie_Cache_File::__construct() public WP 1.0

Create a new cache object

{} It's a method of the class: SimplePie_Cache_File{}

No Hooks.


null. Nothing.


$SimplePie_Cache_File = new SimplePie_Cache_File();
$SimplePie_Cache_File->__construct( $location, $name, $type );
$location(string) (required)
Location string (from SimplePie::$cache_location)
$name(string) (required)
Unique ID for the cache
$type(string) (required)
Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data

Code of SimplePie_Cache_File::__construct() WP 5.8.3

public function __construct($location, $name, $type)
	$this->location = $location;
	$this->filename = $name;
	$this->extension = $type;
	$this->name = "$this->location/$this->filename.$this->extension";