Edgewall Software
Modify

Opened 18 months ago

Last modified 8 months ago

#13480 assigned defect

Incorrect cache invalidation for BadIP and BadContent

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: plugin - spam-filter
Component: plugin/spamfilter Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In a multiprocess environment the cache is not refreshed for other processes. Jun has suggested:

We should use patterns method with @cache decorator and call del self.patterns when changing the wiki page.

The changes need to be implemented in:

  • IPRegexFilterStrategy: tracspamfilter/filters/ip_regex.py
  • RegexFilterStrategy: tracspamfilter/filters/regex.py

Attachments (2)

spam-filter-1.2-r17600.diff (10.7 KB ) - added by Jun Omae 8 months ago.
spam-filter-1.4-r17596.diff (10.7 KB ) - added by Jun Omae 8 months ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Maynard K., 16 months ago

I'll have a look at this one

by Jun Omae, 8 months ago

Attachment: spam-filter-1.2-r17600.diff added

by Jun Omae, 8 months ago

Attachment: spam-filter-1.4-r17596.diff added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Ryan J Ollos.
The ticket will be disowned. Next status will be 'new'.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.