Autor Zpráva
skaj
Profil
Dobry den.

Resim jeden problem. Pouzivam eaccelerator pro aktivni kesovani HTML obsahu a promennych.

Jenze se objevil problem. Mame nekolik serveru na kterem ten projekt bezi => kazdy z nic hsi udrzuje vlastni cache.

jenze zacina byt i hodne jazykovych verzi. Vsechny maji spolecny PHP kod. POuze se lisi prepnutim jedne promenne. Jenze kazda verze jede na jine domene a tim si vytvari svoje cache i kdyz se v 99% procentech nelisi od tech ostatnich.

Tzn., kdyz mam 4 domen yse stejnym projektem, pak oni tu cache nesdileji ale kazdy z nich si ji generuje pro sebe i kdyz se shoduje. A ja potrebuji tomu to zabranit.

Potrebuju poradit, zda se neda nekde nastavit aby na tom serveru ty cache meli sdilene klice napric vsemi projekty ? Server je jen pro nas projekt
- ke kolizi by nedochazelo.

Dekuji predem za radu.

Jiri
skaj
Profil
Prekonal jsem svoji lenost a nasel si to sam ... pokud je to tedy pravda.

URL: http://www.eaccelerator.net/wiki/Settings

eaccelerator.name_space ¶
When using the user cache api for storing data in shared memory, all keys are prepended by the hostname used for the current request. This hostname equals the ServerName? set in the vhost section of apache. This is done to avoid duplicate keys between vhosts. Sometimes this behaviour is desired to share data between vhosts. When setting this option this namespace is used to prepend to each key. By default this is set to "" which instructs eAccelerator to use the hostname as namespace.

When setting this in the main PHP configuration file this namespace will be used by all vhosts. This value can also be set in the vhost section or even in a .htaccess file to allow sharing of data between only two vhosts.

eaccelerator.name_space = ""
Toto téma je uzamčeno. Odpověď nelze zaslat.

0