When does database commit?
-
Hi,
when does the wordpress database commit? Is it instant, or is it and the end of the loop?
I ask this because I have a plugin that calls the same function twice, and on the first run it inserts something to a table, and on the second run it needs to check that whatever was inserted…
I am thinking that the function won’t work like this unless I manually commit after the first run…am I right?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘When does database commit?’ is closed to new replies.