[Koha-devel] Bug (or something) repeatedly loading the same URL over and over.
Galen Charlton
gmc at esilibrary.com
Fri Sep 27 21:45:56 CEST 2013
Hi,
On Fri, Sep 27, 2013 at 12:33 PM, Galen Charlton <gmc at esilibrary.com> wrote:
> What ended up showing up in my logs was the repeated POSTs to member.pl,
> though not any GETs of circulation.pl.
>
Adapting a JavaScript technique [1] to disable multiple form submission
prevented holding down on the enter key from spamming patron searches for
me. Of course, that's not a bulletproof technique for various reasons, but
something like it should probably be part of Koha's toolkit.
A similar issue in Evergreen where holding down on the enter key could spam
OPAC searches was addressed by interposing a short-term cache for running
search queries so that if a bunch of identical queries arrive, only one of
them queries the database while the rest wait for the first to populate the
search result cache.
[1]
http://stackoverflow.com/questions/926816/how-to-prevent-multiple-form-submit-from-client-side
[2] https://bugs.launchpad.net/evergreen/+bug/1172936
Regards,
Galen
--
Galen Charlton
Manager of Implementation
Equinox Software, Inc. / The Open Source Experts
email: gmc at esilibrary.com
direct: +1 770-709-5581
cell: +1 404-984-4366
skype: gmcharlt
web: http://www.esilibrary.com/
Supporting Koha and Evergreen: http://koha-community.org &
http://evergreen-ils.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20130927/20d868fc/attachment.html>
More information about the Koha-devel
mailing list