[WordPress]TransientAPI#1
public function set_transient_by_query($query, $value, $expiration = -1) { if(!$this->use_transient) return; $this->set_transient(md5($query),$value,$expiration); } public function set_transient($transient, $value, $expiration = -1) { if(!$this->use_transient) return; if($expiration < 0) $expiration = $this->transient_expiration; set_transient($transient, $value, $expiration ); }