View | Details | Raw Unified | Return to bug 20116
Collapse All | Expand All

(-)a/debian/scripts/koha-translate (-2 / +15 lines)
Lines 231-236 init_template_paths() Link Here
231
    PO_DIR="$TRANSLATE_DIR/po"
231
    PO_DIR="$TRANSLATE_DIR/po"
232
}
232
}
233
233
234
flush_cache()
235
{
236
    if [ "$dev" = "" ]; then
237
        koha-foreach --enabled "$KOHA_HOME/misc/bin/clear_cache.pl"
238
    else
239
        koha-shell $dev -c "$KOHA_HOME/misc/bin/clear_cache.pl"
240
    fi
241
}
242
234
# Control variables
243
# Control variables
235
list_all=""
244
list_all=""
236
op=""
245
op=""
Lines 298-308 case $op in Link Here
298
    "list")
307
    "list")
299
        list $list_all ;;
308
        list $list_all ;;
300
    "install")
309
    "install")
301
        install_lang $language ;;
310
        install_lang $language
311
        flush_cache
312
        ;;
302
    "update")
313
    "update")
303
        update_lang $language ;;
314
        update_lang $language ;;
304
    "remove")
315
    "remove")
305
        remove_lang $language ;;
316
        remove_lang $language
317
        flush_cache
318
        ;;
306
    "check")
319
    "check")
307
        check_lang_po_files $language ;;
320
        check_lang_po_files $language ;;
308
    *)
321
    *)
(-)a/misc/bin/clear_cache.pl (+9 lines)
Line 0 Link Here
1
#!/usr/bin/perl -w
2
3
use Modern::Perl;
4
use Koha::Caches;
5
6
# Could take parameters to be less rude
7
Koha::Caches->get_instance()->flush_all;
8
Koha::Caches->get_instance('config')->flush_all;
9
Koha::Caches->get_instance('sysprefs')->flush_all;
(-)a/misc/translator/translate (-1 / +4 lines)
Lines 29-34 use LangInstaller; Link Here
29
use Getopt::Long;
29
use Getopt::Long;
30
use Pod::Usage;
30
use Pod::Usage;
31
31
32
use Koha::Caches;
33
32
34
33
my $verbose     = 0;
35
my $verbose     = 0;
34
my $pref        = 0;
36
my $pref        = 0;
Lines 68-73 if ( $cmd =~ /create|install|update/ ) { Link Here
68
    else {
70
    else {
69
        $installer->$cmd(\@files);
71
        $installer->$cmd(\@files);
70
    }
72
    }
73
74
    Koha::Caches->get_instance()->flush_all if $cmd ne 'update';
71
}
75
}
72
else {
76
else {
73
    usage();
77
    usage();
74
- 

Return to bug 20116