Cache resources until any resource is updated or deleted

If any resource is updated or deleted, the version is updated.
The version will be used as resources cache key.
I used Time.now.to_f as version with no thought but anything is OK.