简体   繁体   中英

Symfony2 problems with cache

I have worked with one project on Symfony2. It works on my local server, but when I uploaded this project to the hosting, it has stopped working. Over time I have found, that problem is with the cache directory.

So uploading the cache from the local server to the hosting has solved this problem.

What can the problem be? What are the main problems with cache on Symfony2?

You don't upload the cache folder. These are only temporary files. Look at the docs about how to deploy .

Most likely you have to run:

php app/console cache:clear --env=prod --no-debug

Also check that the cache and log folder is writable as pointed out on the installation documentation :

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM