[koha-commits] main Koha release repository branch 3.22.x updated. v3.22.07-81-gc4be995

Git repo owner gitmaster at git.koha-community.org
Thu Jun 16 14:00:50 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 3.22.x has been updated
       via  c4be9951a7c15a12ba4901c2632681cec8e68978 (commit)
       via  620023209f10d55db9ca3900dfa20c5532c2e411 (commit)
       via  6c360763e80e9d85c11af4395778dca936e8850a (commit)
       via  bc2a946f7c331b3535c1a5c6a31534b4ca8aa7fd (commit)
       via  acb6f4ba41df93dccc3a715b74f12d866e97c890 (commit)
       via  0f082e6583aba50835c1c688599d510e117b2f20 (commit)
       via  7040625691d33ff223a2f4af0205b2c7580db9a1 (commit)
       via  af168f1706c4048d65771112f5e4a25c8fdd76f9 (commit)
      from  6236084603d4976c562c8c5e646aaeea31b37f63 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c4be9951a7c15a12ba4901c2632681cec8e68978
Author: Galen Charlton <gmcharlt at gmail.com>
Date:   Tue Jun 7 01:42:59 2016 +0000

    Bug 16675: fix breakage of t/Languages.t
    
    This patch fixes test breakage introduced by the patch for bug 16088,
    which added caching of getlanguages().  Upon inspection, it looks like
    the patch for 16088 does not introduce a regression on bug 10560,
    so this patch adds a couple cache-clearings.
    
    To test
    -------
    [1] Verify that t/Languages.t passes.
    
    Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
    Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
    
    Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    (cherry picked from commit b9b4eeb849dcb52053a98440e1d8fb02011a9005)
    Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>

commit 620023209f10d55db9ca3900dfa20c5532c2e411
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Mon May 9 17:27:51 2016 +0100

    Bug 16088: Introduce Koha::Cache::Memory::Lite to cache the language
    
    The goal of this patch is to avoid unecessary flush of the L1 cache on
    creating a new CGI object each time C4::Languages::getlanguage is called
    without a CGI object.
    
    The new class Koha::Cache::Memory::Lite must be flushed by the CGI
    constructor overide done in the psgi file. This new class will ease
    caching of specific stuffs used by running script.
    
    Test plan:
    At the OPAC and the intranet interfaces:
    Open 2 different browser session to simulate several users
    - Clear the cookies of the browsers
    - User 1 (U1) an User 2 (U2) should be set to the default language
      (depending on the browser settings)
    - U1 chooses another language
    - U2 refreshes and the language used must be the default one
    - U2 chooses a third language
    - U1 refreshes and must be still using the one he has choosen.
    
    Try to use a language which is not defined:
    Add &language=es-ES (if es-ES is not translated) to the url, you should
    not see the Spanish interface.
    
    Signed-off-by: Jacek Ablewicz <abl at biblos.pk.edu.pl>
    
    Signed-off-by: Jesse Weaver <jweaver at bywatersolutions.com>
    
    Signed-off-by: Brendan Gallagher <brendan at bywatersolutions.com>
    (cherry picked from commit f01a07a25e0503d9dbed3a4226cb51a155bcacd4)
    Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>

commit 6c360763e80e9d85c11af4395778dca936e8850a
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Thu Mar 24 20:47:47 2016 +0000

    Bug 16044: Populate the L1 cache when L2 is fetched
    
    The whole patch set is not very pertinent if the L1 cache is not
    populated when L2 is fetched!
    This patch fixes this inconsistency.
    
    Signed-off-by: Jesse Weaver <jweaver at bywatersolutions.com>
    Signed-off-by: Jacek Ablewicz <abl at biblos.pk.edu.pl>
    
    Signed-off-by: Brendan A Gallagher <brendan at bywatersolutions.com>
    (cherry picked from commit c75271a741632b4aa9af0c6c342cdbf1c77e699f)
    Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>

commit bc2a946f7c331b3535c1a5c6a31534b4ca8aa7fd
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Tue Mar 15 16:40:14 2016 +0000

    Bug 16044: Add an unsafe flag to Koha::Cache->get_from_cache
    
    If the caller/developer knows what he is doing, he can decide not to
    deep copy the structure. It will be faster but unsafe!
    If the structure is modified, the cache will also be updated.
    This option must be used with care and is not the default behavior.
    
    Signed-off-by: Jesse Weaver <jweaver at bywatersolutions.com>
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    
    Signed-off-by: Brendan A Gallagher <brendan at bywatersolutions.com>
    (cherry picked from commit b0bbace4dd8c19488110bf5c06817077abaa3f1c)
    Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>

commit acb6f4ba41df93dccc3a715b74f12d866e97c890
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Tue Mar 15 16:17:32 2016 +0000

    Bug 16044: Add deep cloning
    
    To avoid the cache to be modified unfortunately, the default behavior of
    get_from_cache will be to deep copy if we are getting a structure.
    If the item is a scalar, it's simply returned.
    
    Signed-off-by: Jesse Weaver <jweaver at bywatersolutions.com>
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    
    Signed-off-by: Brendan A Gallagher <brendan at bywatersolutions.com>
    (cherry picked from commit 2e0af6e6df279aa08603e9696d35fc7def7bd7d3)
    Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>

commit 0f082e6583aba50835c1c688599d510e117b2f20
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Tue Mar 15 15:50:15 2016 +0000

    Bug 16044: Add tests to make sure structures will be copied
    
    Signed-off-by: Jesse Weaver <jweaver at bywatersolutions.com>
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    
    Signed-off-by: Brendan A Gallagher <brendan at bywatersolutions.com>
    (cherry picked from commit 3bfe541d0d97cdad08f9be2cff20c04a03424a25)
    Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>

commit 7040625691d33ff223a2f4af0205b2c7580db9a1
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Tue Mar 15 15:45:20 2016 +0000

    Bug 16044: Make tests from t/Cache.t pass
    
    The timeout does not impact the L1 cache (it would be to time consuming
    and not really useful to do that for this cache).
    To simulate the real timeout, we need to flush this L1 cache when
    needed.
    It would be also done adding a disable_L1_cache method.
    
    Signed-off-by: Jesse Weaver <jweaver at bywatersolutions.com>
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    
    Signed-off-by: Brendan A Gallagher <brendan at bywatersolutions.com>
    (cherry picked from commit bbfe394bb6e1ac8851b3c73826ea6fa5e7a0c94c)
    Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>

commit af168f1706c4048d65771112f5e4a25c8fdd76f9
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Thu Mar 10 15:54:28 2016 +0000

    Bug 16044: Use the L1 cache for any objects set in cache
    
    Signed-off-by: Jesse Weaver <jweaver at bywatersolutions.com>
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    
    Signed-off-by: Brendan A Gallagher <brendan at bywatersolutions.com>
    (cherry picked from commit dda7a0a25ff480abda219084686e8138341fbba3)
    Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>

-----------------------------------------------------------------------

Summary of changes:
 C4/Context.pm               |   14 ---------
 C4/Languages.pm             |   30 ++++++++++++------
 C4/Templates.pm             |   14 +++++----
 Koha/Cache.pm               |   49 ++++++++++++++++++++++++++---
 Koha/Cache/Memory/Lite.pm   |   72 ++++++++++++++++++++++++++++++++++++++++++
 debian/templates/plack.psgi |    5 ++-
 misc/plack/koha.psgi        |    5 ++-
 t/Cache.t                   |   73 +++++++++++++++++++++++++++++++++++++++++--
 t/Languages.t               |    3 ++
 9 files changed, 227 insertions(+), 38 deletions(-)
 create mode 100644 Koha/Cache/Memory/Lite.pm


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list