function CarpCache($url, $cachefile) { global $carpconf; if (strlen($cachefile)) { $cache = CarpSetCache($cachefile); if ($cache % 2 == 0) { require_once dirname(__FILE__) . '/carpinc.php'; CacheRSSFeed($url); } } else { CarpError('No cache file indicated when calling CarpCache.', 0); } }
function CarpCache($url, $cachefile, $cachefunction = 1) { global $carpconf; if ($carpconf['phperrors'] >= 0) { $carpconf['savephperrors'] = error_reporting($carpconf['phperrors']); } if (strlen($cachefile)) { $cache = CarpSetCache($cachefile, $cachefunction); if ($cache % 2 == 0) { require_once CarpDirName() . '/carpinc.php'; CacheRSSFeed($url); $carpconf['cachefile'] = ''; if ($carpconf['phperrors'] >= 0) { error_reporting($carpconf['savephperrors']); } return 1; } } else { CarpError('No cache file indicated when calling CarpCache.', 0); } $carpconf['cachefile'] = ''; if ($carpconf['phperrors'] >= 0) { error_reporting($carpconf['savephperrors']); } return 0; }