Moved clear cache to cellForItemAtIndexPath with a conditional statement

Prevents clear cache from being called numerous times.