Added "cleanupIfNeeded" public method

Applications may need to explicitly request a disk cache cleanup in some circumstances.