Replacing broken CacheClear with working inline cache clear