Skip to content
Snippets Groups Projects
Commit 08ef6cd0 authored by Bernhard Kraft's avatar Bernhard Kraft Committed by Frank Naegler
Browse files

[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: default avatarDaniel Goerz <ervaude@gmail.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: default avatarFrank Naegler <frank.naegler@typo3.org>
parent d5d38323
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment