Bug 24642: Make Cache::Memcached::Fast::Safe required
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 12 Feb 2020 14:24:35 +0000 (15:24 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 12 Feb 2020 16:24:39 +0000 (16:24 +0000)
There is something wrong between the logic in Koha::Cache->new and our
dependencies.

We are having Cache::Memcached required, but
Cache::Memcached::Fast::Safe is optional.
However, in Koha::Cache->new we are initializing the Memcached cache
only if Cache::Memcached::Fast::Safe is installed.

We could fix the logic in Koha::Cache, but it seems better to make
Cache::Memcached::Fast::Safe mandatory (especially after bug 13193).

Note that after bug 13193, you are loosing the Memcached cache, as
Cache::Memcached::Fast::Safe will not get installed by default.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Installer/PerlDependencies.pm

index 9f1db97..5c1acfc 100644 (file)
@@ -264,7 +264,7 @@ our $PERL_DEPS = {
     },
     'Cache::Memcached::Fast::Safe' => {
         'usage'    => 'Caching',
-        'required' => '0',
+        'required' => '1',
         'min_ver'  => '0.06'
     },
     'Cache::FastMmap' => {