This might be considered a bug... but I thought I'd at least warn folks.

I'm using fragment caching and the host name is in the key of the
fragment.  The problem is that this is the host name used in the URL.
So, if you have two or more ways to get to the same host, you will have
multiple versions of the same cached object.

For example, if your domain is foo.com and your host is bar, then some
users might use http://bar/rest/of/path and others might use
http://bar.foo.com/rest/of/path

In one case, bar is the host and is used in the key for the fragments
and in other cases bar.foo.com is.  This creates a problem when you try
to invalid a cached entity.  If you are using a sweeper and the user
comes in as bar and updates a database record, you flush the cache entry
with bar in the name but not the cache entry with bar.foo.com in the
name.  You still have the old fragment cached up and some of your lusers
will hit it.

I'm not sure quiet yet how to fix this.  I want to somehow modify the
host in the request to be the fully qualified hostname and not the short
hand version.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to