Hi,

i'm trying to get a grasp on caching right now, and i've stumpled over
a little problem and i'm wondering if i'm maybe missing something.

When a model automatically clears the view cache it searches for files
with the models name in the filename, so in the end that means that
only those cached views are deleted that belong to a controller whichs
name is the same as the one of the model, ie

Model: Item
Controller: items

Works, the cache file is named "items_action", it searches for
"*items" and "*items_*".

Model: Item
Controller: some_alias

Doesn't work, the cache file is named "some_alias_action", it searches
for "*items" and "*items_*".

Model: SomeAlias
Controller: items

Doesn't work, the cache file is named "items_action", it searches for
"*some_alias" and "*some_alias_*".

I'm just wondering if this is really the correct intended behaviour,
controller name must match model name and therefore only a single
model per controller can be handled?

Regards, Timo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to