Skip to content

Commit

Permalink
= 4.2.2.3 =
Browse files Browse the repository at this point in the history
~ Fixed: duplicate value cache.
  • Loading branch information
tungnxt89 committed Mar 21, 2023
1 parent 1ccee52 commit 773b0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/databases/class-thim-cace-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function get_value( string $key_cache ) {
*/
public function set_value( string $key_cache, string $value ) {
$value_old = $this->get_value( $key_cache );
if ( $value_old ) {
if ( false !== $value_old ) {
// Update
$sql = $this->wpdb->prepare(
"UPDATE {$this->table_name} SET value = %s WHERE key_cache = %s",
Expand Down

0 comments on commit 773b0da

Please sign in to comment.