set_transient fails if the value has more than 60.000 characters
Question
I have a problem which I can’t figure out. I have a collection of object which sometimes can be very big. I have to store the entire collection as a serialized transient. The problem is that when the serialized string has more than 60000 characters the insertion in the DB fails.
Why? I checked the wp_options table and the “value” column is a longtext. Which holds 4GB of data, am I right?
0
database, transient
4 years
2020-02-10T08:39:07-05:00
2020-02-10T08:39:07-05:00 0 Answers
63 views
0
Leave an answer