Further optimisation of the Lucene writer so it clears cached readers whenever an internal flush is performed, rather than just when the writer is closed which happens less often