Updates to clearCache to fix issue with Posts context crash