Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#22398 closed Cleanup/optimization (fixed)

Docs should mention that cache KEY_FUNCTION can be a callable

Reported by: anonymous Owned by: gregloy
Component: Documentation Version: master
Severity: Normal Keywords: cache key_function
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The cache docs currently state that:

  • KEY_FUNCTION A string containing a dotted path to a function that defines how to compose a prefix, version and key into a final cache key.

However, it is also possible to specify a callable. I think this should be mentioned in the docs.

Change History (5)

comment:1 Changed 12 months ago by timo

  • Easy pickings set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Cleanup/optimization

comment:2 Changed 12 months ago by gregloy

  • Owner changed from nobody to gregloy
  • Status changed from new to assigned

comment:3 Changed 12 months ago by arachnegl <gregoryloyse@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In 8da86fd19b0907d3ea20593ca75073dce727d1aa:

Fixed #22398 -- Added detail about callable in KEY_FUNCTION docs

comment:4 Changed 12 months ago by Simon Charette <charettes@…>

In 63d0cbab042c981d6ef63a3193fb1fa0027db0fd:

Merge pull request #2541 from arachnegl/22398_KEY_FUNCTION_doc_detail

Fixed #22398 -- Added detail about callable in KEY_FUNCTION docs

comment:5 Changed 12 months ago by Simon Charette <charette.s@…>

In f004374f8ff0ad30a694a0f4b74ba24ca9cf3227:

[1.7.x] Fixed #22398 -- Added detail about callable in KEY_FUNCTION docs

Backport of 8da86fd19b from master

Note: See TracTickets for help on using tickets.
Back to Top