[BUGFIX] Warning when clearing all caches from within install tool 89/43289/4
authorBernhard Kraft <kraft@webconsulting.at>
Mon, 14 Sep 2015 09:01:43 +0000 (11:01 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Mon, 4 Apr 2016 13:08:48 +0000 (15:08 +0200)
commit08ef6cd095c0c3d5ffee2ab622a048e981794cd3
tree680cb3eaff27972f2d1b48347b13444c7c22d260
parentd5d383239987904cda8cdcd60cda14e74889781b
[BUGFIX] Warning when clearing all caches from within install tool

When using the "clearAllCache" button a warning message gets shown
(or eventually just logged) when the APC file cache is used.

Reason is that the method "OpcodeCacheUtility::clearAllActive()"
will not allow to clear whole directories. Per definition the used
method "apc_delete_file()" allows only to delete single file-cache
entries from the APC cache when called with a string argument.

So for this to work the method "apc_delete_file()" got changed to
use the "ApcIterator" class using a regular expression matching
the given directory.

Change-Id: I7148fb3c176e05518901b032eccddfa2dd448c4a
Resolves: #69773
Releases: 6.2
Reviewed-on: https://review.typo3.org/43289
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Classes/Utility/OpcodeCacheUtility.php