Clear memory cache on memory warning. Closes #3.