• I installed super cache and it really makes my wp very fast. But can it cache the sql embeded internally ?

    for example:

    <?php
    $authorID = $wpdb->get_var(“SELECT post_author FROM $wpdb->posts WHERE ID = ‘2’”);
    ?>

    Will the result be cached?

    I am also very curious about the rule that super cache do a cache. Anyone give me some tips?

    Thanks very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Sort of. It’ll be cached because the output in the page will be cached, but you’ll need an object cache to cache the actual result by using wp_cache_update() and wp_cache_get() ..

    Thread Starter Aw Guo

    (@awflasher)

    Thanks donncha!

    But I searched “wp_cache_update” and get nothing in Google nor in your blog.

    So can you give me some further tips 🙂

    Thanks in advance!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can the “SUPER CACHE” cache the SQL results?’ is closed to new replies.