From 5c75b5742f908af633382930f90a3c26b6249fba Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Thu, 1 Oct 2015 11:58:41 +0100
Subject: [PATCH] [PASSED QA] Bug 5371: (follow-up) Force no caching for
 private pages at the OPAC
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Same as previous patch for opac-messaging.pl and opac-readingrecord.pl

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
---
 opac/opac-messaging.pl     | 2 +-
 opac/opac-readingrecord.pl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opac/opac-messaging.pl b/opac/opac-messaging.pl
index 718a86e..dfd273a 100755
--- a/opac/opac-messaging.pl
+++ b/opac/opac-messaging.pl
@@ -66,4 +66,4 @@ $template->param( BORROWER_INFO         => [ $borrower ],
                   SMSSendDriver                =>  C4::Context->preference("SMSSendDriver"),
                   TalkingTechItivaPhone        =>  C4::Context->preference("TalkingTechItivaPhoneNotification") );
 
-output_html_with_http_headers $query, $cookie, $template->output;
+output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
diff --git a/opac/opac-readingrecord.pl b/opac/opac-readingrecord.pl
index 3848aaa..dc87c56 100755
--- a/opac/opac-readingrecord.pl
+++ b/opac/opac-readingrecord.pl
@@ -150,4 +150,4 @@ $template->param(
     OPACMySummaryHTML => $opac_summary_html ? 1 : 0,
 );
 
-output_html_with_http_headers $query, $cookie, $template->output;
+output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
-- 
1.9.1