You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2019/08/09 08:54:49 UTC
svn commit: r1864779 -
/spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
Author: hege
Date: Fri Aug 9 08:54:48 2019
New Revision: 1864779
URL: http://svn.apache.org/viewvc?rev=1864779&view=rev
Log:
Rename {c} to sensible {get_cache}
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm?rev=1864779&r1=1864778&r2=1864779&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm Fri Aug 9 08:54:48 2019
@@ -263,7 +263,7 @@ sub new {
'subtest_names_hit' => [ ],
'spamd_result_log_items' => [ ],
'tests_already_hit' => { },
- 'c' => { },
+ 'get_cache' => { },
'tag_data' => { },
'rule_errors' => 0,
'disable_auto_learning' => 0,
@@ -401,7 +401,7 @@ sub check_timed {
# now that we've finished checking the mail, clear out this cache
# to avoid unforeseen side-effects.
- $self->{c} = { };
+ $self->{get_cache} = { };
# Round the score to 3 decimal places to avoid rounding issues
# We assume required_score to be properly rounded already.
@@ -2214,7 +2214,7 @@ sub _get {
# $_[1] is request
# $_[2] is defval
sub get {
- my $cache = $_[0]->{c};
+ my $cache = $_[0]->{get_cache};
my $found;
if (exists $cache->{$_[1]}) {
# return cache entry if it is known