DEV Community

Viswanath Subramani
Viswanath Subramani

Posted on

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

I wanted to edit my previous post and save it back. But, every time it throws this error. Can someone please help?

andy image

Cached

Cached tag list is too long (maximum is 64 characters)

Top comments (9)

Collapse
 
andy profile image
Andy Zhao (he/him)

Hey ya, looks like the mention didn't work.

Think the issue is that your tags should have spaces between each comma, and it's being interpreted as a giant string. That error message is not all that helpful though, and we should update that.

Collapse
 
vishwan profile image
Viswanath Subramani • Edited
andy image

Thanks for your prompt response, Andy. But unfortunately, it didn't work. I tried giving spaces between each tag, tried keeping just one tag, tried removing all tags; none of it worked. Can you please check on the issue once more? Here's the screenshot:

cached tags

Cached tag list is too long (maximum is 64 characters)
Collapse
 
andy profile image
Andy Zhao (he/him)

Ah, I see what the issue is. That's a bug on our end. We'll get a fix out soon; sorry about that!

Thread Thread
 
vishwan profile image
Viswanath Subramani

Sure. Could you please update here once the fix is done? Thanks!

Thread Thread
 
andy profile image
Andy Zhao (he/him)

Fixed! :) Let us know if it works.

Thread Thread
 
vishwan profile image
Viswanath Subramani

Worked like a charm! Many thanks, Andy! :)

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 :)