diff --git a/Translation/Translator.php b/Translation/Translator.php index 70489143..49a3d5ee 100644 --- a/Translation/Translator.php +++ b/Translation/Translator.php @@ -108,7 +108,7 @@ public function removeLocalesCacheFiles(array $locales) */ protected function invalidateSystemCacheForFile($path) { - if (ini_get('apc.enabled')) { + if (ini_get('apc.enabled') && function_exists('apc_delete_file')) { if (apc_exists($path) && !apc_delete_file($path)) { throw new \RuntimeException(sprintf('Failed to clear APC Cache for file %s', $path)); }