Development

Changeset 7627

You must first sign up to be able to contribute.

Changeset 7627

Show
Ignore:
Timestamp:
02/27/08 13:37:43 (8 months ago)
Author:
fabien
Message:

disabled routing cache when in debug mode, added a debug option for sfRouting classes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/config/config/factories.yml

    r7626 r7627  
    5555      default_module:     default 
    5656      default_action:     index 
     57      debug:              %SF_DEBUG% 
    5758      logging:            %SF_LOGGING_ENABLED% 
    5859      cache: 
  • branches/1.1/lib/routing/sfRouting.class.php

    r7616 r7627  
    4545   * Initializes this sfRouting instance. 
    4646   * 
     47   * Available options: 
     48   * 
     49   *  * default_module: The default module name 
     50   *  * default_action: The default action name 
     51   *  * logging:        Whether to log or not (false by default) 
     52   *  * debug:          Whether to cache or not (false by default) 
     53   * 
    4754   * @param sfEventDispatcher A sfEventDispatcher instance 
    4855   * @param sfCache           A sfCache instance 
     
    5259  { 
    5360    $this->dispatcher = $dispatcher; 
    54     $this->cache      = $cache; 
     61 
     62    $options['debug'] = isset($options['debug']) ? (boolean) $options['debug'] : false; 
     63 
     64    // disable caching when in debug mode 
     65    $this->cache = $options['debug'] ? null : $cache; 
    5566 
    5667    if (isset($options['default_module']))