element-api icon indicating copy to clipboard operation
element-api copied to clipboard

Fix error if no cache tags was registered

Open sfsmfc opened this issue 1 year ago • 3 comments

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

sfsmfc avatar May 15 '24 14:05 sfsmfc

@brandonkelly facing this issue too. Any update on it?

WHITE-developer avatar Sep 11 '24 16:09 WHITE-developer

I'm getting this too on one of my Craft 5 sites but not others.

LinneaHarts avatar Sep 27 '24 17:09 LinneaHarts

This patch works

LinneaHarts avatar Sep 27 '24 17:09 LinneaHarts