Cache key does not consider request-url / domain - subdomain setup lacks cache coherence

Christoph C. Cemper - May 29, 2006 - 08:06
Project:Drupal
Version:5.x-dev
Component:base system
Category:support request
Priority:normal
Assigned:Unassigned
Status:by design
Description

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

beginner - June 19, 2006 - 06:56
Version:4.6.6» x.y.z

Fairly exotic.
In any case, this bug would still exist in cvs.

#2

Christoph C. Cemper - June 20, 2006 - 23:50

Ok - I'd need to fix this... can you point me to the right source module so I can make an attempt myself?

#3

beginner - June 21, 2006 - 06:04
Category:bug report» support request
Priority:critical» normal

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

Christoph C. Cemper - June 21, 2006 - 07:31

oh - different cache tables sound intersting - will try that!

#5

bdragon - December 29, 2007 - 18:31
Version:x.y.z» 5.x-dev
Status:active» by design

Cache tables were NOT designed to be shared, make sure each site has its own.

 
 

Drupal is a registered trademark of Dries Buytaert.