Hello.
I suggest you to use sha1 instead of md5 to generate unique id for cache name,
because sha1 result is longer than md5 result (40 vs 32 characters).
8 more characters = more permutations available = less collision chance. :)
Think about site with tons of pages.
More cache name...