Koha/misc/bin/clear_cache.pl
Jonathan Druart 4de2185614
Bug 20116: Flush the caches
When languages are added or removed when need to flush the caches to
keep the interface consistent

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-17 09:23:21 +01:00

9 lines
238 B
Perl
Executable file

#!/usr/bin/perl -w
use Modern::Perl;
use Koha::Caches;
# Could take parameters to be less rude
Koha::Caches->get_instance()->flush_all;
Koha::Caches->get_instance('config')->flush_all;
Koha::Caches->get_instance('sysprefs')->flush_all;