# if we've got it, and it's less than one hour old, return it.
if (cache_valid($cache_location)) {
serve_cache($cache_location,$q);
exit 0;
}
# if we don't have it, get it, and store it in the cache
# if we've got it, and it's less than one hour old, return it.
if (cache_valid($cache_location)) {
serve_cache($cache_location,$q);
exit 0;
}
# if we don't have it, get it, and store it in the cache