From 3be1eeedec6c3b9efc15e0d507b6c99502979f3a Mon Sep 17 00:00:00 2001 From: Trent Steel Date: Mon, 5 May 2014 20:42:21 +1000 Subject: [PATCH] Generate an APC prefix based on __FILE__ Closes #654 --- web/app.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/app.php b/web/app.php index 4f591c107c..29e72b1d19 100644 --- a/web/app.php +++ b/web/app.php @@ -6,10 +6,8 @@ $loader = require_once __DIR__.'/../app/bootstrap.php.cache'; // Use APC for autoloading to improve performance. -// Change 'sf2' to a unique prefix in order to prevent cache key conflicts -// with other applications also using APC. /* -$apcLoader = new ApcClassLoader('sf2', $loader); +$apcLoader = new ApcClassLoader(sha1(__FILE__), $loader); $loader->unregister(); $apcLoader->register(true); */