Refs #21630 - Migrate cache invalidation form to z3cform

- Migrate to z3cform in order to easily extend it outside this package
Refs #21630 - Migrate cache invalidation form to z3cform

- Update behaviour and documentation