From 45dbc9cde1d2067260b92c65b3f61b9987bc5dc8 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] Bug 5371: (follow-up) Force no caching for private pages at
 the OPAC

Same as previous patch for opac-messaging.pl and opac-readingrecord.pl
---
 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 };
-- 
2.1.0