Fix cache_digest rake tasks

Bring cache_digests:* rake tasks up-to-date with the API changes introduced in
637bb726cac60aaa1f7e482836458aa73e17fbb7
Merge pull request #15605 from mekishizufu/fix_cache_digests_rake_tasks

Fix cache_digest rake tasks