PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | inc/database/base.php +6 -1 2.12.7 → 2.12.8 View file →
@@ -789,9 +789,14 @@
789 789 * @since 0.0.13
790 790 * @return int|false The number of rows deleted, or false on error.
791 791 */
792 792 public function use_delete( $where, $where_format = null ) {
793 - return $this->wpdb->delete( $this->get_tablename(), $where, $where_format );
793 + $result = $this->wpdb->delete( $this->get_tablename(), $where, $where_format );
794 +
795 + // Reset cache so subsequent queries in the same request exclude the deleted row.
796 + $this->cache_reset();
797 +
798 + return $result;
794 799 }
795 800
796 801 /**
797 802 * Retrieve results from the database based on the given WHERE clauses and selected columns.