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

(-)a/C4/XSLT.pm (+5 lines)
Lines 350-355 Returns reference to XSLT handler object. Link Here
350
=cut
350
=cut
351
351
352
sub engine {
352
sub engine {
353
    my $xsltcache = C4::Context->preference('XSLTCache') // 1;
354
    unless ($xsltcache) {
355
        # Do not use cache
356
        $xslth->refresh();
357
    }
353
    return $xslth;
358
    return $xslth;
354
}
359
}
355
360
(-)a/installer/data/mysql/atomicupdate/bug_2xxxx_add_XSLTCache_preference.perl (+9 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
5
        VALUES ('XSLTCache','1',NULL,'Enable/disable XSLT cache','YesNo')
6
    });
7
    SetVersion( $DBversion );
8
    print "Upgrade to $DBversion done (Bug 2xxxx - Add XSLTCache system preference)\n";
9
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref (-1 / +7 lines)
Lines 65-70 Administration: Link Here
65
              choices:
65
              choices:
66
                  yes: "The logged-in library"
66
                  yes: "The logged-in library"
67
                  no: "All libraries"
67
                  no: "All libraries"
68
        -
69
            - "XSLT cache: "
70
            - pref: XSLTCache
71
              choices:
72
                  yes: "Enabled"
73
                  no: "Disabled"
74
            - Disable for XSLT files edition and enable for better performance.
68
    Login options:
75
    Login options:
69
        -
76
        -
70
            - "Inactivity timeout in seconds to automatically log out users: "
77
            - "Inactivity timeout in seconds to automatically log out users: "
71
- 

Return to bug 21101