partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2caeb4aa659fc49c897c1d7cdc770f96d75a9c7a
parent 41ec672528d9322aa4622a837963eb0cb811d340
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed,  2 Dec 2015 18:36:28 +0100

Clear the APC cache during setup if it exists

Diffstat:
Msrc/PartKeepr/SetupBundle/Controller/CacheWarmupSetupController.php | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/PartKeepr/SetupBundle/Controller/CacheWarmupSetupController.php b/src/PartKeepr/SetupBundle/Controller/CacheWarmupSetupController.php @@ -88,6 +88,10 @@ class CacheWarmupSetupController extends SetupController $application->run($input, $output); + if (function_exists("apc_clear_cache")) { + apc_clear_cache(); + } + } catch (\Exception $e) { $response["success"] = false; $response["message"] = "Cache warm up error";