[BUGFIX] Clear_cache() must not consider page ids lower than 0 78/23078/5
authorOliver Hader <oliver@typo3.org>
Fri, 11 Oct 2013 12:30:53 +0000 (14:30 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 11 Oct 2013 15:24:16 +0000 (17:24 +0200)
commit22b392acb97efa1accb82634aa066c5e06345baa
tree19286127d753576549a363e7471a77e719cc8b9f
parent3d5e8ef38aaefc8a28bcfd2750f381d4c47fec73
[BUGFIX] Clear_cache() must not consider page ids lower than 0

DataHandler::clear_cache() is called with a table and an uid that
has been modified to trigger the clear cache commands. To find
siblings, children, parents, etc. the pid value is directly used
to find the affected pages. However, in a workspace context, the
pid is always "-1" which leads to a selection of all page
records of all workspaces. This amount is used to flush all
defined caches by a given tag name and might result in execution
time outs.

To avoid these superfluous cache flushes, page ids lower than 0
are ignored now in this section.

Fixes: #51051
Releases: 6.0, 6.1, 6.2
Change-Id: I03987bbd8c5d3526fb4dfda75b0dd0316fe1d836
Reviewed-on: https://review.typo3.org/23078
Reviewed-by: Sascha Egerer
Tested-by: Sascha Egerer
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Classes/DataHandling/DataHandler.php