[dev] Using Memcache with the new Horde_HashTable

Michael M Slusarz slusarz at horde.org
Wed May 29 16:11:15 UTC 2013


Quoting Rui Carneiro <rui.carneiro at portugalmail.net>:

> On Wed, May 22, 2013 at 11:47 PM, Rui Carneiro <
> rui.carneiro at portugalmail.net> wrote:
>
>> You should probably look at the recent changelog commits to HashTable.
>>>  This one in particular:
>>>
>>> * [mms] Actually have HashTable return results for get() and exists().
>>>
>>> In other words - you need to either use git or wait for the next beta
>>> releases.
>>>
>>
> While I wait the next beta release i was testing the latest git version.
>
> Session handler is now working well with Memcache but I now have issues
> with CSS/JS cache.
>
> My current config for cache, cachecss and cachejs:
>
> $conf['cache']['default_lifetime'] = 86400;
> $conf['cache']['driver'] = 'HashTable';
> $conf['cache']['use_memorycache'] = 'HashTable';
> $conf['cachecssparams']['driver'] = 'horde_cache';
> $conf['cachecssparams']['lifetime'] = 86400;
> $conf['cachecss'] = true;
> $conf['cachejsparams']['driver'] = 'horde_cache';
> $conf['cachejsparams']['compress'] = 'none';
> $conf['cachejsparams']['lifetime'] = 86400;
> $conf['cachejs'] = true;
>
> Can anyone point me what I might be doing wrong? :)

#1 - *Don't don't don't* use Horde_Cache as the caching backend for  
CSS/JS.  This simply won't work reliably at all.  If you are using  
this on a production system, you are most certainly breaking things  
for your users when upgrading.  I really should remove this option...
#2 - Anyway, your conf.php is out-of-date.  For example, it is  
'Hashtable', not 'HashTable'.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the dev mailing list