Add cache versioning

These are the lost updates i got here BTW I'm the original author of the code, thanks for packaging :)