[MAGNOLIA-1490] core: combine bypass and cache voters Created: 26/Apr/07  Updated: 23/Jan/13  Resolved: 04/May/07

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 3.1 M2

Type: Improvement Priority: Major
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MAGNOLIA-1477 Configurable cache exclusions Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

I propose to:

  • the voters should be moved from cache to the core
  • a voter has a vote() method (replacing the current allowCache method)
  • vote() returns an integer
  • negative and positve votes
  • the voter with the highest absolute value wins
  • 0 means no vote
  • the sign of the highest value defines if this is pro/contra cache/notcache bypass/accept
  • vote() should not take a request object, since all information is available in the context
  • the value of the default pattern based voter is the length of the pattern

Generated at Mon Feb 12 03:27:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.