@coreykn I deep dived into the hooks Cache Enabler provides and I am missing an important part:
The "system cache cleared hooks" are executed after the respective action has been done. While it makes totally sense that this only happens when cached files exist, there is no action executed if there is no cache available.
I have a usecase where we use an Edge Caching, which I purge via API. In some cases the edge cache is present while the Cache Enabler cache is not. And currently there is no way to send a remote purge request via Cache Enabler as long as no cache file exists, and the cache file won't get generated as the edge cache is already present.
To solve that, always executed actions are required, which are executed when cache clearing is requested. So I would like to ask for your opinion to add e.g the following actions which are executed before Cache Enabler checks for existing files:
cache_enabler_before_page_cache_clear
cache_enabler_before_site_cache_clear
cache_enabler_before_complete_cache_clear
That would be so fantastic. I am hapy to open a PR if this is something you agree with.
@coreykn I deep dived into the hooks Cache Enabler provides and I am missing an important part:
The "system cache cleared hooks" are executed after the respective action has been done. While it makes totally sense that this only happens when cached files exist, there is no action executed if there is no cache available.
I have a usecase where we use an Edge Caching, which I purge via API. In some cases the edge cache is present while the Cache Enabler cache is not. And currently there is no way to send a remote purge request via Cache Enabler as long as no cache file exists, and the cache file won't get generated as the edge cache is already present.
To solve that, always executed actions are required, which are executed when cache clearing is requested. So I would like to ask for your opinion to add e.g the following actions which are executed before Cache Enabler checks for existing files:
cache_enabler_before_page_cache_clearcache_enabler_before_site_cache_clearcache_enabler_before_complete_cache_clearThat would be so fantastic. I am hapy to open a PR if this is something you agree with.