Clear editmode cache before scanning for new blocks
Fixes #323