Greetings,
There is a new class in the core called PHPWS_Cache.
Adam and Steven had been discussing it as a replacement to the
(apparently) rampant use of sessions. So, after discussing the specs, I
wrote it this morning.
http://res1.stddev.appstate.edu/horde/chora/co.php/phpws_core/core/Cache.php?r=1.2
You will not use $core to call it. Instead you will use PHPWS_Cache::
There are two functions to call: setCache and getCache.
Read the CVS function documentation for usage.
The short of it is you set a cache value with setCache by sending your
data and an identifying id. You retrieve this data by calling getCache and
sending your id. Each cache value lasts for one minute defaultly, but you
can set it to whatever you wish.
I would suggest that we go ahead and start eliminating all unnecessary
SESSIONS that we are using for speed. For example, Calendar has been
retooled to use it, and I suggest changing Layout as well. Layout uses a
session to store templates, we could just use the cache instead.
Take a look and let me know what you think.
BTW if you have updated from RC2 to the CVS version, you should be able to
update the features by updating the core in Boost.
Later
Matt
--
Matthew McNaney
Internet Systems Architect
Electronic Student Services
Appalachian State University
Phone: 828-262-6493
phpwebsite.appstate.edu
ess.appstate.edu
|