Clear cached geometries after commit / rollback. Fixes ticket #7950