Bug 2775: adding method to clean syspref cache in C4::Context
authorAndrew Moore <andrew.moore@liblime.com>
Tue, 11 Nov 2008 20:34:13 +0000 (14:34 -0600)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Mon, 17 Nov 2008 16:50:50 +0000 (17:50 +0100)
commitdc73ef953b7832a6a784324556c5eefb01cad100
treea9e7952b3046bc4a8109dd28b6129effb2998193
parent73c23ec91a473158ea6ae94aeff5ce5ca543f753
Bug 2775: adding method to clean syspref cache in C4::Context

C4::Installer provides a way to update the kohaversion syspref. Now that
C4::Context caches syspref values, any updated value through C4::Installer
is not being seen.

This patch adds a method to C4::Context to allow you to clean that
cache. Then, it calls that method when the kohaversion syspref is changed.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Context.pm
C4/Installer.pm