Development

ref/DirCache (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of ref/DirCache

Show
Ignore:
Author:
bshirley (IP: 206.231.146.2)
Timestamp:
01/19/09 18:00:16 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ref/DirCache

    v0 v1  
     1= cache = 
     2 
     3This cache is created and maintained by the symfony system itself.  There is ''never'' a reason for a developer to directly modify it. 
     4 
     5The developer does however often clear the cache using the [wiki:ref/TaskCacheClear cache:clear] task; especially after modifying the class hierarchy in the project.  This commonly occurs when executing a [wiki:ref/TaskPropelBuildMode propel:build-model] or [wiki:ref/TaskDoctrineBuildModel doctrine:build-model] or a task that aggregates one of these with other tasks. 
     6 
     7This directory is all derived from the actual contents of the project.  It is not desirable to maintain its contents in a version control apparatus. 
     8 
     9The [wiki:ref/FileSettingsYml settings.yml] file contains on/off configuration for the cache; the [wiki:ref/FileCacheYml cache.yml] file can be used to configure the behavior of the cache, particularly on a per-action granularity. 
     10 
     11Actions called with the HTML POST method or those with GET parameters are not cached. 
     12 
     13== Locations == 
     14 
     15{{{ 
     16/<projname>/cache 
     17}}} 
     18 
     19== Contents == 
     20 
     21The cache will contain directories for each of the applications within the project that have been run since the cache was cleared, as well as many ancillary files which are not specifically documented and may be changed in the future. 
     22 
     23== Examples == 
     24 
     25listing from [http://www.symfony-project.org/jobeet/1_2/Propel/en/ Jobeet]: 
     26 
     27{{{ 
     28> ls -l cache 
     29drwxrwxrwx  4 user  staff    136 Jan  7 14:59 backend 
     30drwxrwxrwx  6 user  staff    204 Dec 12 15:35 frontend 
     31-rw-r--r--  1 user  staff  86962 Jan 15 13:48 project_autoload.cache 
     32drwxrwxrwx  4 user  staff    136 Jan 12 13:40 tmp 
     33}}} 
     34 
     35== References == 
     36 
     37 * The Definitive Guide to symfony, [http://www.symfony-project.org/book/1_2/12-Caching Chapter 12] - Caching 
     38 * Task: [wiki:ref/TaskCacheClear cache:clear] - a.k.a. cc 
     39 * The Jobeet Tutorial, [http://www.symfony-project.org/jobeet/1_2/Propel/en/01 Day 1] - Starting up the Project 
     40 * The Jobeet Tutorial, [http://www.symfony-project.org/jobeet/1_2/Propel/en/22 Day 2] - The Cache