Magenaut

Magenaut

A blog about Magento Development, Magento bug fixing, and more

Skip to content
Menu
  • Home
  • Notes
  • Tutorial
  • Bug fixing
  • Extension
  • Server
  • Q&A
  • About

Tag: transient

Q&APosted onAugust 5, 2022

Set WordPress Transient Expiration via Variable Value

I want to set WordPress Transient via Variable Value.

Read More
Q&APosted onAugust 5, 2022August 5, 2022

Do WordPress’ cron’s clean up expired transients?

WordPress has a cron named “delete_expired_transients” as seen in the image below.

Read More
Q&APosted onAugust 5, 2022

Why does WordPress create two transients with the same name when I specify timeout value?

Working with transients with a timeout, I seem to be getting two transients created, and I don’t quite understand why. Looking at the source code on: https://developer.wordpress.org/reference/functions/set_transient/, it would appear this only occurs when wp_using_ext_object_cache() returns false.

Read More
Q&APosted onAugust 4, 2022August 5, 2022

Are transients garbage collected?

This question got me thinking Transient RSS feeds in wp_options not removed automatically?

Read More
Q&APosted onAugust 3, 2022August 4, 2022

How does object caching work?

I’m looking for a definitive answer here. When object caching is enabled, where do options and transients end up living?

Read More
Q&APosted onAugust 3, 2022August 4, 2022

Cache remote (HTTP) request with Transients API

I am trying to use get_transient() method in my WordPress, I have read the document and seems like I am doing what has been described in the docs.

Read More
Q&APosted onAugust 3, 2022August 4, 2022

When should I be using the Transients API?

I’ve never used the Transients API before and was wondering if anyone has guidance on when to use it. The Codex article implies that as a theme developer I might want to set each new WP_Query() as a transient; I assume the same might be said for direct $wpdb queries and query_posts(). Is that overkill? And/Or are there other places I should default to using it?

Read More
Q&APosted onAugust 2, 2022August 3, 2022

Will it break my site if I delete all transient records in wp_options table?

My site currently has an outrageous 500k+ transient records in the wp_options table.
This causes the table to be crashed frequently and so be my site.

Read More
Q&APosted onAugust 1, 2022August 2, 2022

Long option names fail silently?

This was really driving me crazy. I was debugging some code with code-generated transient names and they were failing like crazy for no apparent reason.

Read More
Q&APosted onAugust 1, 2022August 2, 2022

Looping through posts per category gives same posts for each category

For a specific section on my website I loop through some categories and get the three latest posts in that categorie and list them. Like so:

Read More

Posts navigation

Page 1 Page 2 Next Page

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 141 other subscribers

Recent Comments

  • anonymous on Fix libwacom9 dependency issue when upgrade Debian
  • sreedhar on Fix libwacom9 dependency issue when upgrade Debian
  • saintnick on Fix libwacom9 dependency issue when upgrade Debian
  • ranafoul on Fix libwacom9 dependency issue when upgrade Debian
  • John Fro on UFW rule from a list of IPs

Tags

actions admin ajax bash block-editor categories command-line css custom-field custom-post-types custom-taxonomy customization database filters functions hooks images javascript linux loop menus metabox multisite pagination permalinks php plugin-development plugins post-meta posts rest-api security shell shell-script shortcode templates theme-development themes uploads url-rewriting user-roles users woocommerce-offtopic wp-admin wp-query

© Magenaut - The Magento Astronaut