Database cache problem
-
Hi,
Found one issue with the database cache. Sample:$wpdb->query("TRUNCATE TABLE xyz"); $wpdb->get_var("SELECT * FROM xyz WHERE fieldId = 1"); // return 0 --> correct $wpdb->insert("xyz", ['fieldId' => 1]); // insert record $wpdb->get_var("SELECT * FROM xyz WHERE fieldId = 1"); // return 0 --> wrong!
Result stays cached even after insert/update.
- The topic ‘Database cache problem’ is closed to new replies.