WordPress.org

Ready to get started?Download WordPress

Forums

Cache vs (3 posts)

  1. dartiss
    Member
    Posted 3 years ago #

    WordPress appears to have 2 caching methods built into it - transients and wp_cache.

    Are there instances where you'd use one in preference to the other? I've been reading up on both but can't determine if one has an advantage in a given situation.

    Thanks,
    David.

  2. anmari
    Member
    Posted 3 years ago #

  3. dartiss
    Member
    Posted 3 years ago #

    Thanks - had looked for some explanation and had always come up empty!

    I'm still a little confused though, and this may be because I've an example with sits somewhere in the middle.

    If I have a plugin that gets some information from a remote site and then needs to recall it and use it in each post, which would be best? According to those notes, storing information from a remote site would be best for transients. However, repeated recalling looks best for wp_cache.

    Any thoughts?
    David.

Topic Closed

This topic has been closed to new replies.

About this Topic