You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ma...@apache.org on 2002/10/17 08:43:20 UTC
cvs commit: xml-axkit/lib AxKit.pm
matts 2002/10/16 23:43:20
Modified: lib AxKit.pm
Log:
Applied patch to address non-caching when AxGzipOutput is off from Ed.
Revision Changes Path
1.31 +3 -3 xml-axkit/lib/AxKit.pm
Index: AxKit.pm
===================================================================
RCS file: /home/cvs/xml-axkit/lib/AxKit.pm,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- AxKit.pm 1 Oct 2002 12:07:14 -0000 1.30
+++ AxKit.pm 17 Oct 2002 06:43:20 -0000 1.31
@@ -385,7 +385,7 @@
AxKit::Debug(2, "media: $media, preferred style: $preferred");
# get cache object
- my $cache = Apache::AxKit::Cache->new($r, $r->filename() . '.gzip' . ($r->path_info() || ''), $preferred, $media, $r->notes('axkit_cache_extra'));
+ my $cache = Apache::AxKit::Cache->new($r, $r->filename() . ($AxKit::Cfg->GzipOutput ? '.gzip' : '') . ($r->path_info() || ''), $preferred, $media, $r->notes('axkit_cache_extra'));
my $recreate = 0; # regenerate from source (not cached)
@@ -398,7 +398,7 @@
# Make sure we default the cache file, otherwise
# we setup a potential DoS
AxKit::Debug(3, "resetting cache with no preferred style ($preferred ne $styles->[0]{title})");
- $cache = Apache::AxKit::Cache->new($r, $r->filename() . '.gzip' . $r->path_info(), '', $media, $r->notes('axkit_cache_extra'));
+ $cache = Apache::AxKit::Cache->new($r, $r->filename() . ($AxKit::Cfg->GzipOutput ? '.gzip' : '') . $r->path_info(), '', $media, $r->notes('axkit_cache_extra'));
}
}