public static function getcache($cache, $type = 'json') { if ($type == 'xml') { echo File::cacheDate($cache, 'xml'); } else { echo File::cacheDate($cache, 'txt'); } }