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

Jacek Ablewicz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #10 from Jacek Ablewicz <[email protected]> ---
(In reply to Robin Sheat from comment #9)

1/ In AddAuthorisedValue() there is a call to flush_cache('AddAuthorisedValue')
instead of flush_cache('GetAuthorisedValue') - probably irrelevant.

2/ There are some Memoize and Memoize::Expire bugs reported in CPAN, perl monks
etc. which are still unresolved since last available version (1.03) was
published, e.g.: http://www.perlmonks.org/index.pl?node_id=1049426 .

3/ I'm wondering if memoizing GetAuthorisedValue is such a good idea in the
persistent environment.. Same thing for any subroutines which return references
of any kind - unless we are 100% sure than the result data structures are
always used in strictly read-only mode. Looks like it's not a case for
GetAuthorisedValue(): it returns reference to array of hashrefs, and it's
result is often passed directly to C4::Templates::param() in various scripts.
C4::Templates::output() will then traverse this result and utf8::encode() any
scalar values in the data structures. Subsequent GetAuthorisedValue() calls
will return the same, memoized arrayref but with contents which got possibly
altered by previous request. Not pretty :).

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to