Skipping cache purge and log message when cache is empty

The warning message can be misleading at first when theres nothing actually purging. Also, shouldn't need to call removeAll when its already empty.

Resubmitting to the 1.x branch from pull request #110