Sergio Ivanuzzo
Sergio Ivanuzzo

Reputation: 1922

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?

Upvotes: 1

Views: 67

Answers (1)

k0pernikus
k0pernikus

Reputation: 66430

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:

Upvotes: 4

Related Questions