[wp-hackers] how big objects can i cache using wp transient api?
otto at ottodestruct.com
Fri Sep 30 13:52:01 UTC 2011
The option_value is longtext, which has a maximum size of 2^32-1
In practical terms, the limit will be lower, but there's no particular
issue with storing large data values in a transient. You may have
speed issues in retrieving something that large from the database very
often though. I'd suggest evaluating what parts of the data you
actually need to use and store only those. If you're using the whole
thing, then maybe another approach would work better, such as storing
it in a custom post type.
On Fri, Sep 30, 2011 at 5:41 AM, Konrad Karpieszuk
<kkarpieszuk at gmail.com> wrote:
> i cannnot find answer for this question. i have quite huge array which
> i want to remember in transient. this array after serialization has
> lenght over 300000 signs ( i check this using
> will it be a problem for transient api?
> (en) regards / (pl) pozdrawiam
> Konrad Karpieszuk
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers