[dev] [cvs] commit: horde/config conf.xml horde/docs CHANGES framework/SessionHandler package.xml framework/SessionHandler/SessionHandler memcache_mysql.php

Chuck Hagenbuch chuck at horde.org
Fri Oct 19 14:40:46 UTC 2007


Quoting Michael M Slusarz <slusarz at horde.org>:

>   Log:
>   It makes no sense to have a DB-backed memcache session handler.   
> Since session
>   data changes after every page load, we have to do a DB write every  
> page load.
>   Thus, we gain nothing by using memcache as a go-between (any gain we get
>   from initially loading the data via memcache is offset by the fact we have
>   to do 2 network writes at the end of every page).

The trick, which might not have been implemented yet, is to only do  
the db write (really, both writes) if the session data has changed.  
That way you do get slightly better speed than straight db, and you  
get a fallback if memcache loses any state.

-chuck


More information about the dev mailing list