[BUGFIX] Avoid clearing the page cache too often

Instead of clearing the page cache on every
create, update and delete action, implement
a page id stack which will be cleared at the
end of the request.

Releases: 6.1, 6.0
Fixes: #6117
Change-Id: I3703011e6cd2db9c6a4f32ba27ef09ecb25954f3
Reviewed-on: https://review.typo3.org/17373
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Stefan Neufeind
Reviewed-by: Markus Günther
Tested-by: Markus Günther