Cache key does not consider request-url / domain - subdomain setup lacks cache coherence
| Project: | Drupal |
| Version: | 5.x-dev |
| Component: | base system |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
I setup an installation of Drupal 4.6.6. on
1) http://www.marketingfan.com
and a differnet site-entry at
2) http://tools.marketingfan.com
The setup for 2) contains an entry
'site_frontpage' => 'free-seo-tools' to direct visitors directly to a page where various tools are listed... all the other navigation elements should point back to the www. setup (1)
Therefore all the mysql tables are shared, the only difference are these few settings in the
$conf = array( ... section for directing visitors to the specific page
The bug: as soon as I enable the cache in the drupal settings, the same page gets delivered for the root page for both sites, which seems to mean that the request-url is not stored in the cache hash key of drupal...
This problem should affect similar "content sharing"-setups as well...
Please advise
Christoph C. Cemper

#1
Fairly exotic.
In any case, this bug would still exist in cvs.
#2
Ok - I'd need to fix this... can you point me to the right source module so I can make an attempt myself?
#3
Your server is down, so I couldn't see what you're trying to do.
If you have two different sites, I think the {cache} table shouldn't be shared by both setups. You should have two {cache} tables, one for each site.
It seems to me now that it's not a Drupal issue after all, but a setup issue.
#4
oh - different cache tables sound intersting - will try that!
#5
Cache tables were NOT designed to be shared, make sure each site has its own.