RSSCache::__construct() WordPress Method
The RSSCache::__construct() method is used to setup the caching for an RSS object. It takes an optional integer parameter for the cache time in seconds. If no cache time is specified, the default is 3600 seconds (1 hour).
RSSCache::__construct( $base = '', $age = '' ) #
PHP5 constructor.
Source
File: wp-includes/rss.php
function __construct( $base = '', $age = '' ) { $this->BASE_CACHE = WP_CONTENT_DIR . '/cache'; if ( $base ) { $this->BASE_CACHE = $base; } if ( $age ) { $this->MAX_AGE = $age; } }
Expand full source codeCollapse full source codeView on TracView on GitHub