- There can only every be one entry for the sender/recipient/net pair (due to the unique constraint)
- We already verify in the beginning that we have an entry within the last 7 days (and otherwise purge all entries), so it can't be older than a month.
Details
Details
- Reviewers
machniak - Group Reviewers
Restricted Project - Commits
- rKa4534ed6c24f: Greylist/Request: simplify logic
Diff Detail
Diff Detail
- Repository
- rK kolab
- Branch
- master
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 36505 Build 14488: arc lint + arc unit
Event Timeline
src/app/Policy/Greylist/Request.php | ||
---|---|---|
188 | We could skip the query if we know there's no entries, i.e. see line 87. |
This copies the latest database entry into the current $synctime cache, so that seems to indeed make more sense than reusing the synctime of the previous database entry.