{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Storage","type":"basic","slug":"supporting-structure-storage","excerpt":"Storage is the place we store our compiled views, sessions, caches,  and other 3rd party configurations and so on.","body":"# Storage\n\nStorage is the place we store our compiled views, sessions, caches,  and other 3rd party configurations and so on.\n\n## Index\n- [Cache](#cache)\n- [Session](#session)\n- [Compiled Views](#compiled-views)\n\n---\n\n<a name=\"cache\"></a>\n# Cache\n\nIf your ``cache_adapter`` located at ``project-name/config/app.php`` is equal to **file** that takes the ``project-name/storage/cache`` folder as your cache storage. You could modify the storage path by changing ``adapters.file.options.cacheDir`` located at ``project-name/config/cache.php``.\n\n\n---\n\n\n<a name=\"session\"></a>\n# Session\n\nThe session has the same process of cache, however it only stores a unique web-browser requests, rather than cache that focuses on global/entire application.\n\nThe ``session_adapter`` by default it is configured as **file** which points to the ``session.php`` config.\n\n\n---\n\n\n<a name=\"compiled-views\"></a>\n# Compiled Views\n\nBy default we're using ***volt*** as our template engine, if the **debug** is false located at  ``project-name/config/app.php``, that means we'll compile the .volt files when they were changed.\n\nIf the **debug** is true, we will always compile the .volt files.\n\nAll the compiled templates will be stored at ``project-name/storage/views/`` folder.","updates":[],"order":4,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56e26e6f5ab0871700957c06","user":"56c1105874f0b417004baadc","parentDoc":null,"project":"56c111095abfe40d00be875a","createdAt":"2016-03-11T07:06:23.161Z","__v":9,"category":{"sync":{"isSync":false,"url":""},"pages":["56e26e3a8d79b50e0031d8f6","56e26e42353e060e00b96826","56e26e4d95d1c60e00a969db","56e26e555ab0871700957c04","56e26e6f5ab0871700957c06","56e26e7d7d54ba0e004635a3","56e26e85353e060e00b96828"],"title":"Supporting Structure","slug":"supporting-structure","order":3,"from_sync":false,"reference":false,"_id":"56c42826c0c4630d004e86cb","__v":7,"createdAt":"2016-02-17T07:58:30.542Z","project":"56c111095abfe40d00be875a","version":"56c111095abfe40d00be875d"},"version":{"version":"1.3.0","version_clean":"1.3.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["56c1110a5abfe40d00be875e","56c413a254b6030d00ec299d","56c4275048213b1700af6e33","56c42826c0c4630d004e86cb","56c4282cbc41330d009f2607","56c4284ad1f6d91700d3697e","56e271c195d1c60e00a969ee"],"_id":"56c111095abfe40d00be875d","releaseDate":"2016-02-14T23:43:05.566Z","__v":7,"createdAt":"2016-02-14T23:43:05.566Z","project":"56c111095abfe40d00be875a"},"githubsync":""}

Storage

Storage is the place we store our compiled views, sessions, caches, and other 3rd party configurations and so on.

# Storage Storage is the place we store our compiled views, sessions, caches, and other 3rd party configurations and so on. ## Index - [Cache](#cache) - [Session](#session) - [Compiled Views](#compiled-views) --- <a name="cache"></a> # Cache If your ``cache_adapter`` located at ``project-name/config/app.php`` is equal to **file** that takes the ``project-name/storage/cache`` folder as your cache storage. You could modify the storage path by changing ``adapters.file.options.cacheDir`` located at ``project-name/config/cache.php``. --- <a name="session"></a> # Session The session has the same process of cache, however it only stores a unique web-browser requests, rather than cache that focuses on global/entire application. The ``session_adapter`` by default it is configured as **file** which points to the ``session.php`` config. --- <a name="compiled-views"></a> # Compiled Views By default we're using ***volt*** as our template engine, if the **debug** is false located at ``project-name/config/app.php``, that means we'll compile the .volt files when they were changed. If the **debug** is true, we will always compile the .volt files. All the compiled templates will be stored at ``project-name/storage/views/`` folder.