craftcms / element-api

Create a JSON API/Feed for your elements in Craft.
MIT License
498 stars 56 forks source link

Fix error if no cache tags was registered #191

Open sfsmfc opened 1 month ago

sfsmfc commented 1 month ago

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