Re: View Caching with AuthComponent
Another solution is instead of caching view (data along with presentation), cache only data. Caching of data can be done in controller and to retrieve cache for a specific user, you can append user id in the cache file name. On Jul 14, 6:46 pm, the_woodsman [EMAIL PROTECTED] wrote: I know that in the cookbook there's some info on marking particular sections of a view as cake:nocache or something similar, and similarly you coud just set the action as not cached in the Users controller. Could those be helpful? On Jul 14, 9:32 pm, tdyer [EMAIL PROTECTED] wrote: Hi, I am trying to use CakePHP 1.2rc2 with the Auth Component and View caching. I have noticed that if i do not have the view cached everything works as normal and a user that is not logged in will get redirected to /users/login but if there is a view cached then the cached view gets presented and authorization is not performed. Any ideas on whether this is a feature or if I have broken something? Thanks Tristan- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: View Caching with AuthComponent
Simplest solution is to not cache pages that need authentication. On Jul 14, 5:46 pm, the_woodsman [EMAIL PROTECTED] wrote: I know that in the cookbook there's some info on marking particular sections of a view as cake:nocache or something similar, and similarly you coud just set the action as not cached in the Users controller. Could those be helpful? On Jul 14, 9:32 pm, tdyer [EMAIL PROTECTED] wrote: Hi, I am trying to use CakePHP 1.2rc2 with the Auth Component and View caching. I have noticed that if i do not have the view cached everything works as normal and a user that is not logged in will get redirected to /users/login but if there is a view cached then the cached view gets presented and authorization is not performed. Any ideas on whether this is a feature or if I have broken something? Thanks Tristan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
View Caching with AuthComponent
Hi, I am trying to use CakePHP 1.2rc2 with the Auth Component and View caching. I have noticed that if i do not have the view cached everything works as normal and a user that is not logged in will get redirected to /users/login but if there is a view cached then the cached view gets presented and authorization is not performed. Any ideas on whether this is a feature or if I have broken something? Thanks Tristan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: View Caching with AuthComponent
I know that in the cookbook there's some info on marking particular sections of a view as cake:nocache or something similar, and similarly you coud just set the action as not cached in the Users controller. Could those be helpful? On Jul 14, 9:32 pm, tdyer [EMAIL PROTECTED] wrote: Hi, I am trying to use CakePHP 1.2rc2 with the Auth Component and View caching. I have noticed that if i do not have the view cached everything works as normal and a user that is not logged in will get redirected to /users/login but if there is a view cached then the cached view gets presented and authorization is not performed. Any ideas on whether this is a feature or if I have broken something? Thanks Tristan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---