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

(-)a/Koha/REST/V1.pm (-1 / +11 lines)
Lines 62-67 sub startup { Link Here
62
              if C4::Context->preference('AccessControlAllowOrigin');
62
              if C4::Context->preference('AccessControlAllowOrigin');
63
        }
63
        }
64
    );
64
    );
65
    $self->hook(
66
        around_action => sub {
67
            my ($next, $c, $action, $last) = @_;
68
69
            # Flush memory caches before every request
70
            Koha::Caches->flush_L1_caches();
71
            Koha::Cache::Memory::Lite->flush();
72
73
            return $next->();
74
        }
75
    );
65
76
66
    # Force charset=utf8 in Content-Type header for JSON responses
77
    # Force charset=utf8 in Content-Type header for JSON responses
67
    $self->types->type( json    => 'application/json; charset=utf8' );
78
    $self->types->type( json    => 'application/json; charset=utf8' );
68
- 

Return to bug 38454