• Resolved Mikey

    (@mikeyhash)


    Hi,

    Can you please explain to me how object cache and the Store Transients setting work?

    I simply cannot find a comprehensive answer in your documentation or on the internet.

    My server uses Redis as method and it works alright.

    By default, Persistent Connection and Store Transients settings are ON. And from what I’ve noticed, hundreds of transients get stored in wp_options in this case. If I turn Store Transients to OFF, those transients are no longer stored in wp_options, but the backend admin pages are now loading very slow.

    I thought that, with object cache, transients would be stored in the memory or somewhere else.

    So how exactly does this work?

    Please note that I am quite a beginner in programming.

    Many thanks,
    Mike

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please check WP Object Cache and Transients API

    Best regards,

    Thread Starter Mikey

    (@mikeyhash)

    Hi @qtwrk,

    Thank you, but it still doesn’t make it clear for me.

    For instance, it says that However if persistent caching has not been enabled, then the data will instead be cached to the options table.

    Well, if Persistent Connection is ON in LS Cache, then why are these transients appearing in my wp_options table?

    Another one: Transients are inherently sped up by caching plugins, where normal Options are not. A memcached plugin, for example, would make WordPress store transient values in fast memory instead of in the database.

    What am I missing? Is this how it should work? – i.e. storing transients in options table?

    What I want is to NOT have transients saved in my wp_options table (which makes it large in size).

    Thread Starter Mikey

    (@mikeyhash)

    Basically, the question here is: is it normal to have all those transients stored in my wp_options table, or not?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    That’s the way WP does it , LSCWP just implemented their API.

    and according to codex

    The Transients API is very similar to the Options API but with the added feature of an expiration time, which simplifies the process of using the wp_options database table to temporarily store cached information.

    So yes , it’s normal stored in wp_options

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Object cache – store transients’ is closed to new replies.