public function renewTransients($arrRequestURI) { // Debug // FetchTweets_Debug::getArray( $arrRequestURI, dirname( __FILE__ ) . '/request_uris.txt' ); $oFetch = new FetchTweets_Fetch(); $oFetch->setAPIGETRequestCache($arrRequestURI['URI'], $arrRequestURI['key']); }
/** * Renew the cache of the given request URI * */ public function _replyToRenewTransients($aRequest) { // Perform the cache renewal. $_oFetch = new FetchTweets_Fetch(); if ('_not_api_request' == $aRequest['key']) { $_oFetch->setGETRequestCache($aRequest['URI']); } else { $_oFetch->setAPIGETRequestCache($aRequest['URI'], $aRequest['key'], $aRequest['rate_limit_status_key']); } }