• Elrinth

    (@elrinth)


    Say I do a query:

    $results = $wpdb->get_results(“SELECT * FROM some_table”);

    The next time I execute this query, the results will be the exact same even tho I’ve inserted a row into some_table.

    The question is, how do I clear the cache for this entry?

    I know of: w3tc_dbcache_flush();
    But I don’t want to clear the whole database cache obviously. Is this even possible?

    I’m using 0.9.2.4 of the plugin.

    http://wordpress.org/extend/plugins/w3-total-cache/

Viewing 1 replies (of 1 total)
  • Thread Starter Elrinth

    (@elrinth)

    Seriously has no one else written their own plugin which uses simple select queries and have had the same problem as me?

    creating my own connection via mysqli and fetching the results give me ALWAYS fresh results… But using get_results with wpdb gives me cached results. How do I clear that cache?
    How do I specify that I don’t want the get_results to be cached by w3 total cache?

Viewing 1 replies (of 1 total)
  • The topic ‘w3tc db cache’ is closed to new replies.