#652 - Refactor cache clearing APIs

Identifier #652
Issue type Feature request or suggestion
Title Refactor cache clearing APIs
Status Completed
Handling member Chris Graham
Addon core
Description Currently we have many functions for clearing caches.

Update cache clearing API functions to work with bitmasks, instead of lots of separate functions.

Like:
clear_caches(CACHE_ALL);
clear_caches(CACHE_TEMPLATES|CACHE_IMAGES);

This makes it easier to keep track of where we are clearing caches and makes the code cleaner.
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