Opened 10 years ago

Closed 10 years ago

Last modified 10 years 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: dev
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 by Tim Graham, 10 years ago

Easy pickings: set
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

comment:2 by gregloy, 10 years ago

Owner: changed from nobody to gregloy
Status: newassigned

comment:3 by arachnegl <gregoryloyse@…>, 10 years ago

Resolution: fixed
Status: assignedclosed

In 8da86fd19b0907d3ea20593ca75073dce727d1aa:

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

comment:4 by Simon Charette <charettes@…>, 10 years ago

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 by Simon Charette <charette.s@…>, 10 years ago

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