If you had to clear multiple array caches when a peer method is
called, where would be the best place to store a clear method? In the
peer class or somewhere else?

For example similar code such as this is repeated a few times

$cache = new sfArrayCache(sfConfig::get('sf_cache_dir'));
$cache->remove('something1', 'namespace');
$cache->remove('something2', 'namespace');
$cache->remove('something3', 'namespace');

So I think i should store this in it's own method and just call it,
but I'm wondering if putting it in the peer class is bad practice.


--~--~---------~--~----~------------~-------~--~----~
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