[dev] cache lifetime

Marko Djukic marko at oblo.com
Sun Jul 20 11:10:13 PDT 2003


would it be possible to have a function to extend the lifetime of a cached
object?

minor point, but essentially i have to authenticate against a server with http
and the remote server returns a session id with a lifetime of 15mins. this i
store in cache and recall it every time any other user wants to talk to the
same server.

however, the remote server lifetime of 15mins for the session id will only
expire in 15mins of inactivity so if after 10mins another user uses that
session id it will get extended by another 15mins on the remote server. however
the object in horde cache will expire after 5mins and so would force another
authentication. would be good to be able to just shift the horde cache lifetime
by 15mins and continue reusing the same cached session id, might as well
optimise it all the way.

marko


More information about the dev mailing list