chiark
/
gitweb
/
~ian
/
nj-awaymsg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no-cache
[nj-awaymsg.git]
/
AwayMsg.pm
diff --git
a/AwayMsg.pm
b/AwayMsg.pm
index 1fa389908d2e7322f0ddceb70835c5869b452c1b..da9eaee94acc6b259f42856388366aac5ac2bd4e 100644
(file)
--- a/
AwayMsg.pm
+++ b/
AwayMsg.pm
@@
-12,7
+12,7
@@
BEGIN {
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
$VERSION = 1.00;
@ISA = qw(Exporter);
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
$VERSION = 1.00;
@ISA = qw(Exporter);
- @EXPORT = qw(db_connect db_commit
+ @EXPORT = qw(db_connect db_commit
www_begin
$dbh);
%EXPORT_TAGS = ( );
@EXPORT_OK = qw();
$dbh);
%EXPORT_TAGS = ( );
@EXPORT_OK = qw();
@@
-20,6
+20,11
@@
BEGIN {
our ($dbh);
our ($dbh);
+sub www_begin ($$) {
+ my ($r,$m) = @_;
+ $r->header_out("Cache-Control: no-cache");
+}
+
sub db_connect () {
my $dbf;
foreach my $d (@INC) {
sub db_connect () {
my $dbf;
foreach my $d (@INC) {