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;
		}

	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.