#2522 - Clean up cache API

Identifier #2522
Issue type Feature request or suggestion
Title Clean up cache API
Status Completed
Handling member Chris Graham
Addon core
Description get_cache_entry uses bit flags to determine standard criteria to cache with (e.g. by member, by timezone, etc).

put_into_cache uses passed parameters to achieve the same.

They should both use flags, and use a common function for retrieving the actual criteria values for whatever those flags are (current member ID, etc).

Also rename them to be more like a set. E.g. get_cache_entry and set_cache_entry and delete_cache_entry.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated