WordPress.org

Ready to get started?Download WordPress

Forums

Can the "SUPER CACHE" cache the SQL results? (3 posts)

  1. Aw Guo
    Member
    Posted 6 years ago #

    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!

  2. Donncha O Caoimh
    Member
    Posted 6 years ago #

    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() ..

  3. Aw Guo
    Member
    Posted 6 years ago #

    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!!

Topic Closed

This topic has been closed to new replies.

About this Topic