cache_clear_all() is a bit of a mess. It needs tidying up, and possibly splitting into a couple of different functions. We also need to move the hard-coded page and block cache clears into hooks.
Splitting this from #367380: Make block module optional
Comments
Comment #1
moshe weitzman commentedAssiging to self although if anyone else wants this, feel free.
Comment #2
moshe weitzman commentedComment #4
casey commentedcache_clear_all() seems pretty tidy to me now.
page and block cache clears are however still hard-coded.
Comment #5
catchDuplicate of #81461: Clean up the cache API (stop overloading function arguments, remove procedural wrappers).