Fixed bug that caused cache .Clear() call to always fail