OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-registry Date: 27-Nov-2005 00:42:11 Branch: HEAD Handle: 2005112623421100 Modified files: openpkg-registry registry-ui.pl Log: url caching enable/disable by configuration Summary: Revision Changes Path 1.37 +3 -3 openpkg-registry/registry-ui.pl ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-registry/registry-ui.pl ============================================================================ $ cvs diff -u -r1.36 -r1.37 registry-ui.pl --- openpkg-registry/registry-ui.pl 26 Nov 2005 23:41:28 -0000 1.36 +++ openpkg-registry/registry-ui.pl 26 Nov 2005 23:42:11 -0000 1.37 @@ -69,6 +69,7 @@ $cfg->{db}->{registry}->{host}="127.0.0.1"; $cfg->{db}->{session}->{dbfile}="$PREFIX/var/openpkg-registry/ui/session.db"; $cfg->{canvas}->{url}="http://meta.openpkg.org/?path=project.registry.manage"; +$cfg->{canvas}->{urlcache} = 1; $cfg->{canvas}->{mark_head}="<!-- CANVAS: HEAD -->"; $cfg->{canvas}->{mark_body}="<!-- CANVAS: BODY -->"; $cfg->{page}->{default} = undef; @@ -1709,10 +1710,9 @@ my ($content_type, $expires, $content); undef $content; - ($content_type, $expires, $content) = &getcache($url); + ($content_type, $expires, $content) = &getcache($url) if ($cfg->{canvas}->{urlcache}); ($content_type, $expires, $content) = &fetchurl($url) if (not defined $content); - &setcache($url, $content_type, $expires, $content) if (defined $content); - + &setcache($url, $content_type, $expires, $content) if (defined $content and $cfg->{canvas}->{urlcache}); return $content_type, $expires, $content; } @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org