• Resolved audiowarrior

    (@zonwarrior)


    Hi there,

    I noticed today in wp_options, thousands of _transient_ records…

    For example:

    View post on imgur.com

    I erased all of them with this command:
    delete from wp_options where option_name like ‘%_transient_%’

    For the future, how do I prevent WordPress from creating these records?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author Benjamin Pick

    (@benjamin4)

    These are created because API requests such as Maxmind Precision are cached as transients. They expire after 7 days by default, but WordPress doesn’t guarantee that they are deleted afterwards.
    If you want to disable caching for all requests, add in your functions.php:

    define(‘GEOIP_DETECT_READER_CACHE_TIME’, 0);

Viewing 1 replies (of 1 total)
  • The topic ‘Stop generating _transient_ records in Database?’ is closed to new replies.