Does using set_transient() function can lead to MySQL problems?


As a plugin author, I have to think about many things. One of my plugins uses a temporarily PHP session to save the JSON data that receives through its API in array type.

Because PHP session has its limitations and sometimes causes memory problems, I decided to use the transient function that working nice.

If one site has over a thousand visits a day, each visitor has one temporary record in the database via transient function that expires every 60 minutes or less (depends on how the user determines).

Transient function uses a wp_options table that has by default filed option_id bigint(20).

What will happen when I reach the last option_id?

Does WordPress have some security trigger to reset option_id or there is some other rule?

Or do I just not have to worry about it?

, , , Ivijan Stefan Stipic 6 months 0 Answers 72 views 0

Leave an answer