explain why the CDB config entries are not cached
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@847 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
4d27319233
commit
16e577c798
@ -178,6 +178,7 @@ sub get_qmail_config {
|
|||||||
|
|
||||||
my $configfile = "$configdir/$config";
|
my $configfile = "$configdir/$config";
|
||||||
|
|
||||||
|
# CDB config support really should be moved to a plugin
|
||||||
if ($type and $type eq "map") {
|
if ($type and $type eq "map") {
|
||||||
unless (-e $configfile . ".cdb") {
|
unless (-e $configfile . ".cdb") {
|
||||||
$_config_cache->{$config} = [];
|
$_config_cache->{$config} = [];
|
||||||
@ -195,8 +196,9 @@ sub get_qmail_config {
|
|||||||
$self->log(LOGERROR, "tie of $configfile.cdb failed: $!");
|
$self->log(LOGERROR, "tie of $configfile.cdb failed: $!");
|
||||||
return +{};
|
return +{};
|
||||||
}
|
}
|
||||||
#warn Data::Dumper->Dump([\%h], [qw(h)]);
|
# We explicitly don't cache cdb entries. The assumption is that
|
||||||
# should we cache this?
|
# the data is in a CDB file in the first place because there's
|
||||||
|
# lots of data and the cache hit ratio would be low.
|
||||||
return \%h;
|
return \%h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user