Bugfix in cache to replace metadata db.