Question, and forgive me if I'm just missing this in the documentation. My callback involves a wp_remote_get() request and subsequent data checks. If the request fails (e.g. times out), or the data checks don't pass, I don't want to update the transient. Do I just return false? Is there another way to indicate to NOT update the transient?
There is something with extend_on_fail going, but it's not documented and I don
t quite remember what precisely it does. You'll have to read the code. :)
Question, and forgive me if I'm just missing this in the documentation. My callback involves a
wp_remote_get()
request and subsequent data checks. If the request fails (e.g. times out), or the data checks don't pass, I don't want to update the transient. Do I just return false? Is there another way to indicate to NOT update the transient?Thanks!