• Resolved Thomas Maier

    (@webzunft)


    Hey Weston,

    I noticed that with the use of more and more code blocks with syntax highlighting, transient entries in wp_options are piling up into the hundreds.

    I don’t have deep understanding of blocks and why transients are needed to render code blocks with syntax highlighting. I just wanted to ask to review that part of the code and maybe find an alternative.

    Thanks again for this great plugin!
    Thomas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Hi Thomas. The reason for the transients is to cache highlight.php’s parsing of the code the Code blocks. Without caching, pages would be much slower to generate. A few hundred transients shouldn’t be anything to worry about. They do get garbage-collected after a month, after which new ones are generated for blocks that still exist.

    If you want to avoid such entries being added to wp_options then you really should consider a persistent object cache plugin.

    Thread Starter Thomas Maier

    (@webzunft)

    Hey Weston, thanks for your detailed reply and offered solutions!

    Thomas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing transients from wp_options’ is closed to new replies.