Skip to main content

Questions tagged [transient]

The Transients API provides a standardized way to store data temporarily (with an expiration time) in the database.

0 votes
1 answer
110 views

When I click on "Update now" the plugin gets installed, but I'm getting the following error: The plugin "test/test.php" has been deactivated due to an error: Plugin file does not ...
Alvaro's user avatar
  • 161
0 votes
1 answer
91 views

I want to use flash messages to deliver validation error notices. For people who are not familiar this means that the user sends the form, I process the POST data, I store the error messages ...
inf3rno's user avatar
  • 135
1 vote
0 answers
52 views

I have a custom plugin hosted on github, and had previously had a plugin updater class that would poll the repo for the 'latest' version. Now the plugin is on multiple sites, but we want the option to ...
ConBran's user avatar
  • 111
0 votes
1 answer
116 views

I am trying to store the baseurl to options table in wordpress for non logged in users. Basically if the user was referred to url mysite.com/go/affilatename I want to store affilatename (baseurl) to ...
GURU mcewan.marriott's user avatar
0 votes
2 answers
754 views

In WordPress version 6.3, create a transient named "_transient_wp_core_block_css_files" (~0.4MB) in the wp_options table to store the list of CSS files to load when using WordPress' blocks. ...
Tuan vn's user avatar
2 votes
1 answer
2k views

I am re-using code I successfully used in a very similar theme and install, and in this new site/environment, the function set_transient does not write the transient to the database, returns false, ...
StudioAl's user avatar
  • 526
0 votes
1 answer
290 views

I have a website with over 100,000 posts. On a term taxonomy page, the main query WP_Query->get_posts() is the slowest. I want to cache the results of this query using transients-api. I tried ...
dc09's user avatar
  • 195
1 vote
1 answer
121 views

Anyone recommends an alternative to set_transient that persists the data for the whole duration of the expiration even when object cache is enabled? Example: List item Set a long-duration transient ...
Lucas Bustamante's user avatar
2 votes
1 answer
1k views

I ran a check on wp_options table and I found lots of unsolicited RSS content, which points to sites such as WordPress.org and WP Tavern. This content is taking 75% of space in my database. I am aware ...
Dave White's user avatar
1 vote
1 answer
85 views

Just like add_post_meta() I want to add multiple transients with same key with different values and different timeouts, but I see that the set_transient() function doesn't do that. Is this possible?
BOZ's user avatar
  • 320
0 votes
1 answer
617 views

Clarification: I'm building a site that will show the profiles of different agents (or specialists) in grid based cards. Each of these profile cards will show the online/offline status of the agent ...
Seblito's user avatar
  • 39
4 votes
1 answer
1k views

I'm reading through the WordPress core and noticed that the update_core transient is fetched with get_site_transient(). What is the difference between get_site_transient() and get_transient()? If I ...
Álvaro Franz's user avatar
1 vote
2 answers
2k views

I have a site with many custom queries. Some take many seconds to load a page. To solve that issue, I have been using a caching plugin. The issue is, my caching plugin does not cache a page until I ...
DJZEEGLER's user avatar
  • 129
0 votes
0 answers
204 views

Sorry if vague, trying to track down recent website slowdown reasons, and query monitor shows me this as a DATABASE ERROR consistently for two particular transients being added: Following the ...
yesbutmaybeno's user avatar
0 votes
0 answers
347 views

Let's say I have access to a remote API that stores car data, and I want to be able to place car information box(es) into posts using a shortcode. The shortcode fetches JSON data with wp_remote_get() ...
ddriver1's user avatar
  • 101

15 30 50 per page
1
2 3 4 5
12