Hello
i m trying to see how xcache can be implemented in zikula 1.3
http://xcache.lighttpd.net/wiki/XcacheApi
There is two example in the tracker
a cacher in the filesystem
http://code.zikula.org/core/browser/trunk/lib/objectcache/File.php
a cacher in memcached
http://code.zikula.org/core/browser/trunk/lib/objectcache/Memcached.php
NOTES:First, i think there is a problem with multisites (or multizk). Indeed, if we have multisite and two tableq zk_module_var and ext_module_var, what will be cached ? i think there is a need to add the prefix (or the host) to the key in order to not have this problem.
i come back to my problem
Constructor:
there is no conf in xcache so i don't think there is a need for code here (apart if (!function_exist("xcache_set") ...
commitDelete($key) will be
xcache_unset($key)
commitFlush()
i think this will do it, the is a button to flush all var in xcache admin management, i will look at the code
void xcache_clear_cache(int type, int id)
commitGet($key)
if (xcache_isset("abc_data")) {
return xcache_get("abc_data");
}else{
return false;
}
commitSet($key, $value)
xcache_set($key, $value)
commitReplace($key, $value)
commitDelete($key)
commitSet($key, $value)
do i need only this functions ? in the File object cache there is other function like get,getTableObject,setTableObject,set ? am i misunderstanding somewhere ?
bye
edited by: mumuri, datetimebrief
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
xcache and object cache
-
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
-
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
ObjectCache will not be used in 1.3 since mature caching is already provided by Doctrine which supports caching to Memcache, APC, XCache and a bunch of others. I've also written a memcached (with a d) driver for Doctrine and will write a Files driver additionally.
Regards,
Drak
--
Zikula Lead Developer
Board Member of the Zikula Foundation
Follow me on twitter.com/zikuladrak -
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
- Moderated by:
- Support
