Skip to content

Commit

Permalink
app/cache -> var/cache
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Nov 28, 2015
1 parent b6d93f0 commit b3da3b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cookbook/configuration/environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,13 @@ Symfony takes advantage of caching in many ways: the application configuration,
routing configuration, Twig templates and more are cached to PHP objects
stored in files on the filesystem.

By default, these cached files are largely stored in the ``app/cache`` directory.
By default, these cached files are largely stored in the ``var/cache`` directory.
However, each environment caches its own set of files:

.. code-block:: text
<your-project>/
├─ app/
├─ var/
│ ├─ cache/
│ │ ├─ dev/ # cache directory for the *dev* environment
│ │ └─ prod/ # cache directory for the *prod* environment
Expand All @@ -357,7 +357,7 @@ However, each environment caches its own set of files:
Sometimes, when debugging, it may be helpful to inspect a cached file to
understand how something is working. When doing so, remember to look in
the directory of the environment you're using (most commonly ``dev`` while
developing and debugging). While it can vary, the ``app/cache/dev`` directory
developing and debugging). While it can vary, the ``var/cache/dev`` directory
includes the following:

``appDevDebugProjectContainer.php``
Expand Down
4 changes: 2 additions & 2 deletions cookbook/deployment/azure-website.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ directory with at least the following contents:
.. code-block:: text
/app/bootstrap.php.cache
/app/cache/*
/var/cache/*
/app/config/parameters.yml
/app/logs/*
!app/cache/.gitkeep
!var/cache/.gitkeep
!app/logs/.gitkeep
/app/SymfonyRequirements.php
/build/
Expand Down
2 changes: 1 addition & 1 deletion cookbook/deployment/platformsh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Platform.sh how to deploy your application (read more about
# The mounts that will be performed when the package is deployed.
mounts:
"/app/cache": "shared:files/cache"
"/var/cache": "shared:files/cache"
"/app/logs": "shared:files/logs"
# The hooks that will be performed when the package is deployed.
Expand Down
6 changes: 3 additions & 3 deletions cookbook/workflow/new_project_svn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ with these steps:
.. code-block:: bash
$ cd myproject/
$ svn add --depth=empty app app/cache app/logs app/config web
$ svn add --depth=empty app var/cache app/logs app/config web
$ svn propset svn:ignore "vendor" .
$ svn propset svn:ignore "bootstrap*" app/
$ svn propset svn:ignore "parameters.yml" app/config/
$ svn propset svn:ignore "*" app/cache/
$ svn propset svn:ignore "*" var/cache/
$ svn propset svn:ignore "*" app/logs/
$ svn propset svn:ignore "bundles" web
$ svn ci -m "commit basic Symfony ignore list (vendor, app/bootstrap*, app/config/parameters.yml, app/cache/*, app/logs/*, web/bundles)"
$ svn ci -m "commit basic Symfony ignore list (vendor, app/bootstrap*, app/config/parameters.yml, var/cache/*, app/logs/*, web/bundles)"
#. The rest of the files can now be added and committed to the project:

Expand Down

0 comments on commit b3da3b7

Please sign in to comment.