Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 3be1eee

Browse files
committed
Generate an APC prefix based on __FILE__
Closes #654
1 parent 450796a commit 3be1eee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

web/app.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
77

88
// Use APC for autoloading to improve performance.
9-
// Change 'sf2' to a unique prefix in order to prevent cache key conflicts
10-
// with other applications also using APC.
119
/*
12-
$apcLoader = new ApcClassLoader('sf2', $loader);
10+
$apcLoader = new ApcClassLoader(sha1(__FILE__), $loader);
1311
$loader->unregister();
1412
$apcLoader->register(true);
1513
*/

0 commit comments

Comments
 (0)