[wp-hackers] varchar(64) on transient names
halukkaramete at gmail.com
Fri Jun 13 05:59:54 UTC 2014
excellent answer. thx.
On Thu, Jun 12, 2014 at 10:46 PM, Nicholas Ciske <nl at thoughtrefinery.com>
> 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. So 45
> is always safe.
> This is because transients are just options with a prefix:
> _transient_ = 11 chars
> 64 - 11 = 53
> _transient_timeout_ = 19 chars
> 64 - 19 = 45
> Nick Ciske
> On Jun 13, 2014, at 12:26 AM, Haluk Karamete <halukkaramete at gmail.com>
> > Schema says that it's got room for 64 chars.
> > But we are also advised to keep it at max of 45 chars
> > What takes up the 64-45?
> > $transient (*string*
> > <http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String>)
> > Transient name. Expected to not be SQL-escaped. Should be 45 characters
> > less in length <http://core.trac.wordpress.org/ticket/15058>. @
> > http://codex.wordpress.org/Function_Reference/set_transient#Parameters
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers