Fixes #3052: Fixed the issue that cache dependency data is not reused when `reusable` is set true