• I’m working with WordPress 5.7.2 on wordpress.com

    Most of the posts seem to indicate transients are in the wp_options table. However, when I query the options table directly it does not show the transients.

    To determine this, I’ve set a test transient with set_transient(“TESTING”,”TESTING); and it successfully is obtained with get_transient(“TESTING”), but nothing is shown in the wp_options table.

    Is there another table for transients?

Viewing 1 replies (of 1 total)
  • Moderator Yui

    (@fierevere)

    永子

    wp_options table, where option name’s are
    _site_transient_*
    and
    _transient_*

    however, if object cache drop-in’s are available (such as redis or memcache)
    then transients are stored in the respective key-value storage instead.

    This means – you should not rely on the actual storage at all, only on get_transient() function.

Viewing 1 replies (of 1 total)
  • The topic ‘Where are transients stored?’ is closed to new replies.