Adapt cacheTimeout to reasonnable value

According to the resolution of the graph and the period displayed, we
are able to set a lower bound on a reasonnable cacheTimeout. This will
reduce the burden on graphite webapp when large period (10min) are
displayed with a short refresh period (1sec).