[Koha-bugs] [Bug 16044] Define a L1 cache for all objects set in cache

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 24 21:45:55 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16044

--- Comment #39 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Jacek Ablewicz from comment #19)
> BTW, that part of the 1st followup:
> 
>      my $get_sub = $self->{ref($self->{$cache}) . "_get"};
> -    return $get_sub ? $get_sub->($key) : $self->{$cache}->get($key);
> +    my $value = $get_sub ? $get_sub->($key) : $self->{$cache}->get($key);
> +
> +    $L1_cache{$key} = $value;
> +
> +    return $value;
> 
> is essential if you want to test this bug with L2 = memcache; without it, L1
> cache is not getting populated in such setups. Which explains case 1) from
> comment #17 ;)

This comment was very relevant and I should have submitted a follow-up to make
this patchset pertinent and useful.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list