DEV Community

Discussion on: Is this a bug or, am I missing something? "Cached tag list is too long"

Collapse
 
vishwan profile image
Viswanath Subramani • Edited

@AndyZhao "Cache tags" provide a declarative way to track which cache items depend on some data managed by your Content Management System.

A cache tag is a string. Cache tags are passed around in sets (order doesn't matter) of strings, so they are typehinted to string[]. They're sets because a single cache item can depend on (be invalidated by) many cache tags.

Collapse
 
andy profile image
Andy Zhao (he/him)

Woops, just saw this comment too. See my first comment.

Also, to mention me, you'll have to use my username andy. :)

Collapse
 
vishwan profile image
Viswanath Subramani • Edited

Thank you :)