multi database & cache

View: New views
5 Messages — Rating Filter:   Alert me  

multi database & cache

by Ingo Herz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Thanks for your help and a happy new year to all of you!

Ingo

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: multi database & cache

by Piotras :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ingo Herz <herz@...> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: multi database & cache

by Eero af Heurlin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Piotras wrote:
>
> MidgardPageCacheDir /var/cache/midgard/$dbname
>

DataGard should do this automatically btw (I mentioned this on IRC
yesterday)

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

Same here.


/Rambo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDvQMMi7iLtQbxbW8RAysxAJ9PlA/0JiJz/EiCERzst28v8RFM3gCgpRFn
ANI7/GD+YvrMM8ZntpC83ys=
=q/GC
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: multi database & cache

by Piotras :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Eero af Heurlin <eero.afheurlin@...> wrote:

>
> DataGard should do this automatically btw (I mentioned this on IRC
> yesterday)
>
> > chown -R www-data.www-data /var/cache/midgard/$dbname
> > chmod -R 771 /var/cache/midgard/$dbname
> >
>
> Same here.

Yep , will be included in 1.7.4.
Already in stable branch.

Piotras

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: multi database & cache

by Ingo Herz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Donnerstag, 5. Januar 2006 12:42 schrieb Piotras:

Thanks a lot - works fine now!

Ingo

> Eero af Heurlin <eero.afheurlin@...> wrote:
> > DataGard should do this automatically btw (I mentioned this on IRC
> > yesterday)
> >
> > > chown -R www-data.www-data /var/cache/midgard/$dbname
> > > chmod -R 771 /var/cache/midgard/$dbname
> >
> > Same here.
>
> Yep , will be included in 1.7.4.
> Already in stable branch.
>
> Piotras
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

LightInTheBox - Buy quality products at wholesale price