Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b5c977

Browse filesBrowse files
committed
app/bootstrap.php.cache -> var/bootstrap.php.cache
1 parent 3318f2e commit 6b5c977
Copy full SHA for 6b5c977

File tree

Expand file treeCollapse file tree

2 files changed

+12
-13
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+12
-13
lines changed

‎book/http_cache.rst

Copy file name to clipboardExpand all lines: book/http_cache.rst
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,9 @@ To enable caching, modify the code of a front controller to use the caching
145145
kernel::
146146

147147
// web/app.php
148-
require_once __DIR__.'/../app/bootstrap.php.cache';
149-
require_once __DIR__.'/../app/AppKernel.php';
150-
require_once __DIR__.'/../app/AppCache.php';
151-
152148
use Symfony\Component\HttpFoundation\Request;
153149

150+
// ...
154151
$kernel = new AppKernel('prod', false);
155152
$kernel->loadClassCache();
156153
// wrap the default AppKernel with the AppCache one

‎book/performance.rst

Copy file name to clipboardExpand all lines: book/performance.rst
+11-9Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,18 @@ If you're using the Standard Distribution, this code should already be available
7575
as comments in this file::
7676

7777
// app.php
78-
// ...
79-
80-
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
8178

82-
// Use APC for autoloading to improve performance
83-
// Change 'sf2' by the prefix you want in order
84-
// to prevent key conflict with another application
79+
// ...
80+
$loader = require __DIR__.'/../app/autoload.php';
81+
include_once __DIR__.'/../var/bootstrap.php.cache';
82+
// Enable APC for autoloading to improve performance.
83+
// You should change the ApcClassLoader first argument to a unique prefix
84+
// in order to prevent cache key conflicts with other applications
85+
// also using APC.
8586
/*
86-
$loader = new ApcClassLoader('sf2', $loader);
87-
$loader->register(true);
87+
$apcLoader = new Symfony\Component\ClassLoader\ApcClassLoader(sha1(__FILE__), $loader);
88+
$loader->unregister();
89+
$apcLoader->register(true);
8890
*/
8991

9092
// ...
@@ -119,7 +121,7 @@ If you're using the Symfony Standard Edition, then you're probably already
119121
using the bootstrap file. To be sure, open your front controller (usually
120122
``app.php``) and check to make sure that the following line exists::
121123

122-
require_once __DIR__.'/../app/bootstrap.php.cache';
124+
include_once __DIR__.'/../var/bootstrap.php.cache';
123125

124126
Note that there are two disadvantages when using a bootstrap file:
125127

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.