The previous cache cleanup script failed to cleanup cache due to missing permission in cached files.
before:
The updated script will change the permission of the locked file and try to remove all cached contents. after: