use hashed cache key to prevent too long cache key

We hit some time using the cache an error due to a too long cache key.

I changed to use the md5 of the url as a cache key.
Maybe this should be optional through configuration.

What do you think?