Re: multi database & cache

Piotras <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> Thu, 5 Jan 2006 12:16:34 +0100
Newsgroups gmane.comp.web.midgard.user
Message-ID <[email protected]>
Ingo Herz <[email protected]> wrote:

> Hello,
> 
> we have a Midgard/MidCOM setup with some vhosts, grouped into multiple Midgard 
> databases (one for each customer). It runs on Debian sarge with Midgard 1.7.3 
> from debs, MidCOM site template (2005.11.10) and Apache 1.3. Databases and 
> vhosts were created with datagard.
> 
> Now the problem: cache-files seem to be created unique per database, but can 
> be the same for different pages in different databases. So I was very 
> confused as one site got the layout of another etc...
> 
> Do I have to set different MidgardPageCacheDirs for the vhosts or what else 
> can I do to avoid this?

MidgardPageCacheDir /var/cache/midgard/$dbname

chown -R www-data.www-data /var/cache/midgard/$dbname
chmod -R 771 /var/cache/midgard/$dbname

Piotras