Web based groupware server written in PHP, forum at https://help.egroupware.org/
Go to file
Ralf Becker fd9856ebf5 Class to manage caching in eGroupware:
It allows to cache on 4 levels:
a) tree:     for all instances/domains runining on a certain source path
b) instance: for all sessions on a given instance
c) session:  for all requests of a session, same as egw_session::appsession()
d) request:  just for this request (same as using a static variable)

There's a get, a set and a unset method for each level: eg. getTree()
or setInstance(), as well as a variant allowing to specify the level as first
parameter: eg. unsetCache()

getXXX($app,$location,$callback=null,array $callback_params,$expiration=0)
has three optional parameters allowing to specify:
3. a callback if requested data is not yes stored. In that case the
   callback is called and it's value is stored in the cache AND retured
4. parameters to pass to the callback as array, see call_user_func_array
5. an expiration time in seconds to specify how long data should be cached,
   default 0 means infinit (this time is not garantied and not
   supported for all levels!)

Data is stored under an application name and a location, like
egw_session::appsession().
In fact data stored at cache level egw_cache::SESSION, is stored in
the same way as egw_session::appsession() so both methods can be used
with each other.

The $app parameter should be either the app or the class name, which
both are unique.

The tree and instance wide cache uses a certain provider class, to
store the data eg. in memcached or if there's nothing else configured
in the filesystem (eGW's temp_dir).
2009-04-20 11:50:45 +00:00
addressbook fix for bug #1838: problem with utf-8 data in all csv imports 2009-04-03 12:26:32 +00:00
admin "fix for \"bug\" #1954: greatings should be greetings 2009-04-03 07:02:08 +00:00
calendar "- newer DK holidays thanks to Marius Madsen 2009-04-09 07:35:06 +00:00
doc "setting execute permission for cli (command line) scripts" 2008-11-17 17:16:29 +00:00
etemplate some new and some nicer ;-) mime type icons 2009-04-19 08:07:23 +00:00
filemanager disable name row for select-dir mode too 2009-04-18 10:13:12 +00:00
home tracker #1774, added estonian translation 2008-11-02 14:23:56 +00:00
importexport preparing to sync current lang files before branching for 1.6. One more commit 2008-11-22 11:05:43 +00:00
infolog fix for bug #1838: problem with utf-8 data in all csv imports 2009-04-03 12:26:32 +00:00
notifications updated lang files for notifications 2009-04-06 21:47:18 +00:00
phpgwapi Class to manage caching in eGroupware: 2009-04-20 11:50:45 +00:00
preferences tracker #1774, added estonian translation 2008-11-02 14:23:56 +00:00
resources skipping unnecessary redirect by directly displaying index-method link in navbar 2009-03-30 08:48:59 +00:00
setup allow to set language via setup-cli 2008-11-23 16:46:32 +00:00
timesheet "fix for bug #2025: Database error in Timesheet with selected view category/date" 2009-04-01 20:02:33 +00:00
.htaccess Revert accidentally commited changes. 2008-08-21 20:59:02 +00:00
about.php new about page from Sebastian Ebeling 2007-05-26 19:06:12 +00:00
anon_wrapper.php Formatting cleanup; Removed stray whitespace, especially from the end of some files; Convert api arrays to egw/egw_info 2005-07-08 05:00:14 +00:00
groupdav.php using a session for basic auth (not session aware) clients for WebDAV 2009-04-04 08:38:56 +00:00
header.inc.php.template reworked manageheader: 2008-10-09 16:22:42 +00:00
index.php added an array of replacement names to ease the transition to the new class naming scheme: app_class 2008-10-07 08:51:14 +00:00
login.php CAS (Central Authentication Service) login for eGroupware 2008-11-15 10:54:39 +00:00
logout.php CAS (Central Authentication Service) login for eGroupware 2008-11-15 10:54:39 +00:00
notify_simple.php update headers 2007-02-28 03:40:03 +00:00
notify.php Ensure inclusion of header from the top-level directory 2006-11-22 23:06:05 +00:00
notifyxml.php Ensure inclusion of the top-level header.inc.php 2006-11-22 23:07:19 +00:00
redirect.php Add function from php.net manual page for php < 4.3.0 2004-01-10 19:19:53 +00:00
rpc.php 1. NTLM Single Sign ON 2008-07-16 09:29:13 +00:00
set_box.php Ensure inclusion of header from the top-level directory 2006-11-22 23:06:05 +00:00
soap.php New header.inc.php template 2008-08-21 06:21:32 +00:00
svn-helper.php small svn-helper script to deal easier with our wired svn-structure, without arguments it reveals it's secrects ;-) 2007-06-04 06:44:32 +00:00
webdav.php using a session for basic auth (not session aware) clients for WebDAV 2009-04-04 08:38:56 +00:00
xajax.php "fixed not working xajax call, if no handler given and PHP runs with error_reporting E_ALL (undefined index ...)" 2009-03-20 11:59:18 +00:00
xmlrpc.php New header.inc.php template 2008-08-21 06:21:32 +00:00