• 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.

    https://www.ads-software.com/plugins/w3-total-cache/

  • The topic ‘Database cache problem’ is closed to new replies.