Possible Duplicate:
Long option names fail silently?

The WordPress Transients API makes it easy to save expensive values and look them up later. If you install an object backend (such as APC object cache, memcache or W3 Total Cache) you can cache these values between requests, gaining even more.

But I've noticed that when the name of a transient field is too long, it simply doesn't bother caching it. Aside from being somewhere in the region of 50 characters, I don't know what the maximum length of these names is.

Is this documented somewhere? Does it depend on what backend you're using?

link|improve this question

57% accept rate
2  
have a look at this question. – Milo Jun 16 '11 at 16:53
feedback

closed as exact duplicate by Rarst Jul 3 '11 at 8:12

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

up vote 1 down vote accepted

A transient that doesn't expire has a max name length of 53 characters yet a transient that does expire has a max name length of 45 characters.

http://core.trac.wordpress.org/ticket/15058

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.