#6181: cache not clearing with routed URLs
--------------------------+-------------------------------------------------
    Reporter:  mrbrdo     |          Type:  Bug   
      Status:  new        |      Priority:  Medium
   Milestone:  1.2.x.x    |     Component:  Cache 
     Version:  1.2 Final  |      Severity:  Normal
    Keywords:             |   Php_version:  PHP 5 
Cake_version:             |  
--------------------------+-------------------------------------------------
 I've enabled view caching for a controller. The cache files are created
 correctly, but when the database is updated, the cache files are not
 getting reset/deleted (i am especially sure for pagination caches such as
 _page_x.php).

 To reproduce, put the app into a non root directory (may not be mandatory?
 have not tried, my setup is like this) e.g.:
 http://site.com/projects/testapp/
 In my case i have a Boards controller with a index action that uses
 pagination, and i use routing (i think this is crutial for this bug to be
 reproduced!):
 /Boards/index/b/page:2
 gets routed to
 /b/index/page:2
 Another example: /Boards/index/b/ to /b/index
 After using another action (Boards/reply) to add a post, none of the view
 caches get regenerated.

 I think the problem is in the filenames of the cache files!
 "projects_pboard_b_index_page_1.php" - as you can see it uses routed url
 parts instead of controller/action/params (i would expect it to be e.g.
 "Boards_index_b_page_1.php").. Note: pboards comes from my base URL:
 /projects/pboard/. I think because of this, the cache is then not cleared
 correctly. May not be the case, it is only my opinion.
 Also note, manually clearing the cache with "clearCache();" works, the
 problem is with automagic clearing on database changes.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6181>
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to