Fork me on GitHub

xcache and object cache  Bottom

  • 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
  • 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
  • nice

This list is based on users active over the last 60 minutes.