Development

Changeset 1493

You must first sign up to be able to contribute.

Changeset 1493

Show
Ignore:
Timestamp:
06/21/06 11:05:56 (2 years ago)
Author:
francois
Message:

updated cache doc to mention the correct default cache setting

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/doc/book/content/cache.txt

    r1383 r1493  
    2828--------------------- 
    2929 
    30 For each application of a project, the cache mechanism can be activated or deactivated completely per environment. In the `settings.yml` configuration file, notice the `cache` parameter: 
     30For each application of a project, the HTML cache mechanism can be activated or deactivated completely per environment. In the `settings.yml` configuration file, notice the `cache` parameter: 
    3131 
    3232    prod: 
     
    3838        ... 
    3939 
    40 The default value of this parameter is set to `on`, so you have to specifically set it to `off` to disable it. It is set to `off` in the development environment to allow live modifications of the configuration. 
    41  
    42 This means that if you decide to add caching to one of your apps, you will not be able to see the effect of it in the development environment with the default configuration. The boost given by HTML caching is only perceptible in the production environment - or in any other environment where `cache:   on`. 
    43  
    44 One other cache parameter can be changed in the `settings.yml` file: The default cache lifetime, i.e. the number of seconds after which a cached file is overwritten and the page processed again. The default `default_cache_lifetime` is set to one day, or 86400 seconds. 
     40The default value of this parameter is set to `off`, so you have to specifically set it to `on` to enable it.  
     41 
     42It is set to `off` by default in the development environment. This means that if you decide to add caching to one of your apps, you will not be able to see the effect of it in the development environment with the default configuration.  
     43 
     44Consequently, the boost given by HTML caching is only perceptible in the production environment - or in any other environment where `cache:   on`. 
     45 
     46One other cache parameter can be changed in the `settings.yml` file: The default cache lifetime i.e., the number of seconds after which a cached file is overwritten and the page processed again. The default `default_cache_lifetime` is set to one day, or 86400 seconds. 
    4547 
    4648Caching an action