Fixed APC cache clear. Fixes #1115.
Fix file cache flush deleting .gitignore files. Fixes #1071.
Fix Redis section flush when no keys are present. Fixes #1129.