[Koha-bugs] [Bug 28871] Koha::Objects->empty doesn't work correctly in list context
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Aug 17 17:01:59 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28871
--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 123878
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123878&action=edit
Bug 28871: (follow-up) Remove caching
This patch removes the use of set_cache, as it gets ineffective with
this patchset.
To test:
1. Without any patches applied do:
$ docker exec -ti koha_db_1 bash
m$ mysql -ppassword
> SET GLOBAL general_log=1;
> SET GLOBAL general_log_file='mariadb.log';
> \q
m$ tail -f /var/lib/mysql/mariadb.log
2. On a separate terminal run:
$ kshell
k$ prove t/db_dependent/Koha/Objects.t
=> Notice that before the DELETE tests are run, there are some queries
about borrowers and 0 = 1
3. Apply this patches
4. Repeat 2
=> Notice there's an extra query
This is only to highlight the side-effect of this change.
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list