[TASK] Expose static method for removing cached assets

The static method getCachedAssets hides the concrete implementation
of removing cached assets. The clearCacheCommand-hook has been adjusted.