我正在使用項目symfony版本2.3.6專門。問題是,我在代碼中進行了更改,但更改並未反映在頁面上,直到頁面充電多次。我在開發環境。就好像每次加載頁面時都不會編譯代碼。你不應該在開發環境應該總是編譯?問候工作開發環境symfony2.3
謝謝你的答案。我使用MAMP和PHP 5.5.3並沒有選擇緩存。 的app_dev是:
<?php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Debug\Debug;
// If you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
//umask(0000);
// This check prevents access to debug front controllers that are deployed by accident to production servers.
// Feel free to remove this, extend it, or make something more sophisticated.
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1'))
) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
Debug::enable();
require_once __DIR__.'/../app/AppKernel.php';
$kernel = new AppKernel('dev', true);
//$kernel->loadClassCache();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
我評論線// $內核級> loadClassCache();但問題沒有解決。
我敢肯定它的緩存問題 – 2013-10-21 10:54:46
你有APC緩存安裝?如果是這樣嘗試禁用APC – acrobat
請發佈您的web/app_dev.php文件內容 – Udan