[RCD] Cache messages don't clear after specified period

Thomas Bruederli thomas at roundcube.net
Tue Feb 21 18:16:00 CET 2012


On Wed, Feb 15, 2012 at 16:11, Jure Kranjc <jure.kranjc at arnes.si> wrote:
> Hi
>
> We are using rc 0.7.1 with messages cache enabled and we noticed that
> our cache_messages table in mysql is full of cache records since upgrade
> (1 month). These records should be purged after defined period of time.
> Is that a bug? Should we delete records manually with cron job? Any
> suggestions?
>
> $rcmail_config['messages_cache']='db';
> $rcmail_config['message_cache_lifetime']='1h';

Cache expiration still depends on (deprecated) 'enable_caching' config
option. We should definitely fix this. As a work around you can set
$rcmail_config['enable_caching']=true; in your config to trigger the
cache expunge job.

~Thomas
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80



More information about the Dev mailing list