Development

Changeset 8095

You must first sign up to be able to contribute.

Changeset 8095

Show
Ignore:
Timestamp:
03/26/08 14:59:06 (2 years ago)
Author:
fabien
Message:

fixed action/partial cache when a request has POST or GET parameters

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/filter/sfCacheFilter.class.php

    r7976 r8095  
    5454  { 
    5555    // execute this filter only once, if cache is set and no GET or POST parameters 
    56     if (!sfConfig::get('sf_cache') || count($_GET) || count($_POST)
     56    if (!sfConfig::get('sf_cache')
    5757    { 
    5858      $filterChain->execute(); 
  • branches/1.1/lib/view/sfViewCacheManager.class.php

    r8092 r8095  
    360360  public function isCacheable($internalUri) 
    361361  { 
     362    if (count($_GET) || count($_POST)) 
     363    { 
     364      return false; 
     365    } 
     366 
    362367    list($route_name, $params) = $this->controller->convertUrlStringToParameters($internalUri); 
    363368 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.