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

(-)a/debian/scripts/koha-translate (-2 / +15 lines)
Lines 232-237 init_template_paths() Link Here
232
    PO_DIR="$TRANSLATE_DIR/po"
232
    PO_DIR="$TRANSLATE_DIR/po"
233
}
233
}
234
234
235
flush_cache()
236
{
237
    if [ "$dev" = "" ]; then
238
        koha-foreach --enabled "$KOHA_HOME/misc/bin/clear_cache.pl"
239
    else
240
        koha-shell $dev -c "$KOHA_HOME/misc/bin/clear_cache.pl"
241
    fi
242
}
243
235
# Control variables
244
# Control variables
236
list_all=""
245
list_all=""
237
op=""
246
op=""
Lines 299-309 case $op in Link Here
299
    "list")
308
    "list")
300
        list $list_all ;;
309
        list $list_all ;;
301
    "install")
310
    "install")
302
        install_lang $language ;;
311
        install_lang $language
312
        flush_cache
313
        ;;
303
    "update")
314
    "update")
304
        update_lang $language ;;
315
        update_lang $language ;;
305
    "remove")
316
    "remove")
306
        remove_lang $language ;;
317
        remove_lang $language
318
        flush_cache
319
        ;;
307
    "check")
320
    "check")
308
        check_lang_po_files $language ;;
321
        check_lang_po_files $language ;;
309
    *)
322
    *)
(-)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 26-31 use LangInstaller; Link Here
26
use Getopt::Long;
26
use Getopt::Long;
27
use Pod::Usage;
27
use Pod::Usage;
28
28
29
use Koha::Caches;
30
29
31
30
my $verbose     = 0;
32
my $verbose     = 0;
31
my $pref        = 0;
33
my $pref        = 0;
Lines 65-70 if ( $cmd =~ /create|install|update/ ) { Link Here
65
    else {
67
    else {
66
        $installer->$cmd(\@files);
68
        $installer->$cmd(\@files);
67
    }
69
    }
70
71
    Koha::Caches->get_instance()->flush_all if $cmd ne 'update';
68
}
72
}
69
else {
73
else {
70
    usage();
74
    usage();
71
- 

Return to bug 20116