Module optimizations and cache improvements

- fixed problem with the cache, the filesize function failed when the
path was set to URL not to URI
- CURLOPT_TIMEOUT set to 5 seconds instead of 20 to avoid long loading
content from Yahoo; if the connection takes longer that 5 seconds the
data will be displayed from cache