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

Commit f788b15

Browse files
committed
feature #657 Generate an APC prefix based on __FILE__ (trsteel88)
This PR was merged into the 2.6-dev branch. Discussion ---------- Generate an APC prefix based on __FILE__ Closes #654 Commits ------- 3be1eee Generate an APC prefix based on __FILE__
2 parents 0351159 + 3be1eee commit f788b15

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)