[drupal-devel] performance improvements - avoiding big
unserialize()
Gerhard Killesreiter
killesreiter at physik.uni-freiburg.de
Tue Oct 25 13:36:23 UTC 2005
On Tue, 25 Oct 2005, Moshe Weitzman wrote:
> Dries Buytaert wrote:
> > The problem, however, is multi-server setups like drupal.org. How does
> > one maintain consistent caches across different servers (unless you use
> > a distributed cache like memcached or ... a database cache like we do
> > now)?
> >
>
> Indeed. Anyone have a suggestion for how a site can discover if it is a
> member of a multi-site host?
If we cannot find a better idea we might set a global variable in
settings.php.
> > if (multi-server setup) {
> > 1. use memcached or
> > 2. use a shared database cache or
> > 3. invent a cache-coherency protocol?
> > }
> > else if (APC) {
> > 4. use APC
> > }
>
> i can't think of a better approach than this one. unfortunately we have
> to introduce a bit of complexity to properly address the problem.
Ideally this would be handled by the cache API.
Cheers,
Gerhard
More information about the drupal-devel
mailing list