6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/30/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8024] Reduce session size by improving registry caching
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..___. .. ..__ |\ |[__ \ /|\/|[__) | \|[___ \/ | || \
Comment
> At present, cached registry data takes up a large percentage of > session data. e.g. - quick benchmark on load of IMP 5 shows session > size (obtained via strlen(serialize($_SESSION))) to be approx. 70 K. > Of this, registry cache is approx. 25 K (this installation only has > imp, turba, and chora active). > > > > Most of this registry data is not used in any given page access, let > alone ever in the session. So it would be best to cache only the > registry info that has actually be used in the session, and offload > the rest to a shared memory location where it can be accessed, but > doesn't pollute every user's session. > > > > Initial thoughts is to use Horde_Cache or sqlite. Horde_cache has > the advantage that it does not need to be complied into server like > sqlite does (sqlite requires various modules to be loaded via > php.ini). But cache should be local to the particular server rather > than global. > > > > Pseudocode: > > On load, create the registry cache object for the user and get an md5 > sum of it. > > Store this sum in session data. > > Store registry cache data if it does not already exist. > > Load registry cache object into memory as needed (Horde_Cache) or use > SQL commands (sqlite) to obtain cache information. > > For any registry cache info used, store this data in session. > increased storage size offset by reduced costs of obtaining cache > information from cache store (assumption is that if Horde code needs > registry cache info once, it will need the same code/info on > subsequent page loads).
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers