element-api
element-api copied to clipboard
Fix error if no cache tags was registered
If no cache tags was registered, stopCollectingCacheInfo() returns [null, null]. If we try to assign another tag 'element-api' on it, we get the following error: [Error] Attempt to modify property "tags" on null
This patch solves the problem.
Description
Related issues
@brandonkelly facing this issue too. Any update on it?
I'm getting this too on one of my Craft 5 sites but not others.
This patch works