[Koha-bugs] [Bug 11051] Performance of opac-search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 12 12:35:37 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11051

--- Comment #22 from Jonathan Druart <jonathan.druart at biblibre.com> ---
(In reply to Robin Sheat from comment #21)
> (In reply to Katrin Fischer from comment #20)
> > Robin, could you take a look at comment 9 from Jonathan?
> 
> I can, but I don't know why it'd be doing that. Maybe memcached wasn't
> running or something?

To me it is not working on master.

After some debug:
C4::Context->memcached returns a Cache::Memcached object (created in the BEGIN
block of C4::Context l.86).

The call to memoize_memcached (BEGIN block in C4::Biblio) is done with
         memoize_memcached( 'GetMarcStructure',
                             memcached => C4::Context->memcached);

My error (which I got when I remove the eval) is
  "Invalid memcached argument (expected a hash)"
It is raised because memoize_memcached expects a hashref for the memcached
value, not a Cache::Memcached instance.

>From Memoize::Memcached (v.0.03):
  my $memcached_args = delete $args{memcached} || {};
  croak "Invalid memcached argument (expected a hash)"
    unless ref $memcached_args eq 'HASH';


Tell me if I am not clear or if I forgot something.

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


More information about the Koha-bugs mailing list