[MAGNOLIA-437] [cache] smarter cache: automatically avoid caching certain kind of requests Created: 13/Jun/05  Updated: 13/Jun/05  Resolved: 13/Jun/05

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 2.1 Final
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Fabrizio Giustina Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

The cache can now be manually configured to exclude certain urls: anyway, some kind of requests could be automatically excluded.
I think we should not cache request:

  • done with POST (usually a form submission)
  • with parameters (since the cache doesn't consider parameters while storing the file)
  • when the editing mode is on

In future we could try to add a more configurable inclusion/exclusion pattern, which doesn't only consider the URI... for now, this could be a cheap improvement. This should allow to keep cache always enabled, also in an admin instance, without problems.



 Comments   
Comment by Fabrizio Giustina [ 13/Jun/05 ]

note: the cache already doesn't return a cached item if the request contains parameter or uses the post method, but it allows INSERTING of items in the cache in a similar situation (so a page which is accessed by post is always added scheduled for the cache process)

Comment by Fabrizio Giustina [ 13/Jun/05 ]

in svn

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