From b3da3b7e19e5f85959b10b590487f575e1139fad Mon Sep 17 00:00:00 2001 From: WouterJ Date: Sat, 28 Nov 2015 11:14:00 +0100 Subject: [PATCH] app/cache -> var/cache --- cookbook/configuration/environments.rst | 6 +++--- cookbook/deployment/azure-website.rst | 4 ++-- cookbook/deployment/platformsh.rst | 2 +- cookbook/workflow/new_project_svn.rst | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cookbook/configuration/environments.rst b/cookbook/configuration/environments.rst index 8bb2c45a41b..15f2e2f8479 100644 --- a/cookbook/configuration/environments.rst +++ b/cookbook/configuration/environments.rst @@ -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 / - ├─ app/ + ├─ var/ │ ├─ cache/ │ │ ├─ dev/ # cache directory for the *dev* environment │ │ └─ prod/ # cache directory for the *prod* environment @@ -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`` diff --git a/cookbook/deployment/azure-website.rst b/cookbook/deployment/azure-website.rst index 3ec53c8e466..a1c8307871a 100644 --- a/cookbook/deployment/azure-website.rst +++ b/cookbook/deployment/azure-website.rst @@ -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/ diff --git a/cookbook/deployment/platformsh.rst b/cookbook/deployment/platformsh.rst index c4d91aafef8..9ca118f197e 100644 --- a/cookbook/deployment/platformsh.rst +++ b/cookbook/deployment/platformsh.rst @@ -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. diff --git a/cookbook/workflow/new_project_svn.rst b/cookbook/workflow/new_project_svn.rst index 8fe7e9eacd9..9ea1c05b78a 100644 --- a/cookbook/workflow/new_project_svn.rst +++ b/cookbook/workflow/new_project_svn.rst @@ -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: