Keep the optional variable, this way we can still define cache duration per url fetched:
 
+function cacheUrl($url, $time = CACHE_EXPIRE)