#5647: cache helper should take defined custom routes in consideration
-------------------------------+--------------------------------------------
Reporter: edmnc | Type: Bug
Status: new | Priority: Low
Milestone: | Component: Cache
Version: | Severity: Minor
Keywords: cache | Php_version: PHP 5
Cake_version: 1.2.0.7692 RC3 |
-------------------------------+--------------------------------------------
Currently view cache doesn't work, if there are custom prefixes defined,
such as:
{{{
Router::connect('/:locale/:controller/:action/*', array(), array('locale'
=> 'dan|eng'));
}}}
this is because of the checks performed in CacheHelper (lines 80-100 in
RC3), where the path is expected to be
http://doc_root/controller/action/params not
http://doc_root/lang/controller/action/params
Also using custom routes such as
{{{
Router::connect('/products/list', array('controller' => 'products',
'action' => 'listbycat'));
}}}
means cache has to be defined as
{{{
var $cacheAction = array(
'list/' => 3600,
);
}}}
in the products controller, not 'listbycat/' which perhaps would be
expected.
--
Ticket URL: <https://trac.cakephp.org/ticket/5647>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---