Hey guys-

The cache clearing mechanism seems to be sick and I'm not even sure
exactly how things are  supposed to work. The basis for this begins
with the following section from the book:

http://www.symfony-project.org/book/1_2/12-Caching#chapter_12_sub_clearing_cache_across_applications_new_in_symfony_1_1

sfViewCacheManager::generateCacheKey() makes the following
transformation:

internalUri:  module/action?slug=test
cacheKey:    /host/all/module/action/slug/test

Two things happen:
  1) the internal url is remapped to a directory structure
  2) the host and vary header portions are added to the path

The book shows how you can clear the cache directly across
applications by manually creating the sfCache (e.g. sfFileCache)
object and using ->removePattern(). This, however, does NOT do the
following:
  1) Does not map the internal url to the path structure
and more importantly
  2) Does not include the host and vary cache headers portion.

The bottom line is that the pattern you'd base with
sfViewCacheManager::remove() and sfCache::removePattern() is NOT the
same. In fact, I'm not exactly sure what the pattern should look like
for removePattern(). I'd like to get this sorted out and get the
documentation (and code if necessary) updated.

There are at least 2 tickets related to this issue:
http://trac.symfony-project.org/ticket/6235
http://trac.symfony-project.org/ticket/3947

Give me some thoughts - I can take point in getting the correct
changes together but I'm confused on how it's meant to work.

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to