Hi everyone,

I'm thinking about the following issue, where and how should the cache
be cleared? Let's assume a scenario with 2 models: user and message. A
message has a reference to a user. On the user-page (in the frontend)
a partial is included that shows all the messages belonging to that
user. That partial needs to be cached.
Now let's say that messages will be created/edited/deleted in 2
modules in the frontend, and maybe also from the backend (or even a
plugin). When this happens, the cached partial from that user should
be deleted.
The easiest way to do this in this situation would probably be from
the model, right? If you would automatically delete the cache in the
model, it doesn't matter where messages are edited. But I'm not quite
sure if this seems right from a MVC point of view.
How would you do this, and why?

Cheers,
Tijmen

--

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


Reply via email to