The transient tag has no wiki summary.
1
vote
1answer
19 views
Transient unique names
What would be the correct way to assign a different name to each transient for each instance of a plugin used as a widget or shortcode?
1
vote
1answer
32 views
Transients API conditional
I have the following transient, but if the user changes the value of $url the transient should not be used. I want to know what is the most appropriate way to use this variable with the transient. ...
2
votes
2answers
42 views
How to delete cached transients from a widget instance properly?
So I have created this widget which pulls a number of posts. And the query is being cached via transients. But I need the transient to be deleted whenever a post is saved so the query can be ...
0
votes
1answer
42 views
Should the caching of WordPress menus be specific to each page?
Introduction
In optimizing large WordPress Websites for performance I always look at caching certain parts of the Website, mostly (of course) those that require a lot of Queries/calculation.
For the ...
0
votes
1answer
53 views
Unique Transients user id for Non-Logged In users
I am coding a plugin and it seems wordpress discourage use of Sessions. I have a kind of wizard for non-logged in users that asks for First Name, Last Name etc and some conditional questions from ...
0
votes
2answers
137 views
passing markup thought a shortcode attribute
Happy holidays everyone.
Hope someone can help me in thinking about a problem I've run into.
I have a plugin Im building that allows the user to pull address data from the maps API - ie it ...
0
votes
1answer
66 views
Why Transients may not work correctly?
I have a plugin that needs to check for update. Function below - get_version_to_update is fired when someone enters plugin admin page. In theory after request is done, data should be cached via ...
1
vote
3answers
292 views
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?
By default, both are stored in the database. But I've heard some references ...
2
votes
2answers
230 views
Cache remote (HTTP) request with Transients API
I am trying to use get_transient() method in my word-press ,have read the document and seems like i am doing what has been described in the docs.
I need to show Weather in my Website and i am using ...
7
votes
3answers
198 views
Is there any danger in deleting all transients?
I have a big site for a client, and as it is a really customized wordpress installation with lots of extensions on functionality, I can't use the caching plugins.
To improve the performance, I built ...
0
votes
1answer
68 views
Using a wildcard with delete_transient()
I am using the Transients API to hold the output for a gallery plugin's shortcode I created. Due to the number of images used and different layouts needed, the transient name looks lik the following:
...
0
votes
1answer
44 views
Is this the proper usage of creating / using a transient?
I'm new to using transients. Is this the proper format to create a transient and have it pull from the DB instead of using the http api?
I have standardized my snippet so others can double check ...
1
vote
1answer
196 views
WP_Query Performance Issues with meta_query
I'm working on a custom template for a new theme that uses a WP_Query instance to select posts from 2 post types with 2 custom fields that are NOT empty. Depending on the section of the site, a ...
0
votes
1answer
227 views
Compare custom taxonomies of updated post (or new post) [Updated with progress]
I am using the Transients API to cache category loops for a custom taxonomy. All works fine, but if I add a new post or update an existing one, I woud like to compare the taxonomy values and then ...
1
vote
0answers
136 views
After Installing APC Object Cache Backend transients stopped working
My understanding is that once you enable the persistent object cache, your transients are no longer stored in wp_options, but in the cache.
Once I installed Mark Jaquith's APC Object Cache Backend, ...
0
votes
2answers
130 views
Transient api Caches confused
This code works for page 1
<?php
$paged1 = (get_query_var('paged')) ? get_query_var('paged') : 1;
$recent1 = get_transient( 'recent1' );
if ...
0
votes
1answer
392 views
How does Wordpress handle sessions?
I know that Wordpress is stateless and doesn't use any global session variables, but when a user logs in via Wordpress, it must somehow keep track of who is logged in, right? Does Wordpress keep track ...
0
votes
1answer
67 views
Ajax call to transients
If I make an ajax call to a Wordpress transient, is the transient value taken from memory on the server or is a call to the database made?
I'm not using any caching plugins.
My application is ...
1
vote
3answers
1k views
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.
I thought transient records will all expired ...
1
vote
1answer
77 views
Get the timout value of a saved transient?
Does anyone know if there is a Wordpress function to get the timeout value of a saved transient? I am using a transient with a 5 minute timeout to cache data from a web API call locally. Between ...
1
vote
1answer
127 views
How can I store an image in the database with Transients API?
I'm trying to store an image generated with imagecreatefrompng() using the Transients API, but it just stores an empty string (string(0) ""). Also, I notice if I set the transient before imagedestroy( ...
7
votes
5answers
658 views
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 ...
1
vote
2answers
250 views
WordPress Caching - Transients API or “update_user_meta ” Cronjob?
I'm trying to set user meta based on queries. Basically, things like IF the query returns true, set this or if not, set this (or don't set it, if it is true). This works great but the problem is I ...
4
votes
3answers
153 views
Fallback when Transient API fails
I'm trying to figure out how to best solve an issue I have with 3rd party API's (OG, Foursquare, Yelp, etc.). I use the transient API to call and store the various data in order to:
Not exceed any ...
1
vote
1answer
49 views
Should I use the Transients API to temporarily hold edited attachements?
I'm building a store that allows users to order prints of photos. If the user orders a photo that has a different dimension than the one the photo is originally, they are prompted to crop the photo. ...
1
vote
3answers
231 views
Transients vs CRON +Custom Fields: Caching Data Per Post
Wanted some opinions on a solution I'm trying to come up with:
I have a fan/enthusiast plugin I'm working on for fans of TV shows. One of the custom post types attached to the plugin is a release ...
2
votes
2answers
420 views
Using transients in conjunction with memcached
I was hoping someone could clear the air for me when it comes to using transients with memcached.
When running a plugin like w3-total-cache, are there any actual performance advantages to using ...
2
votes
1answer
221 views
Storing an XML Response (Transient)?
Haven't worked much with XML so I'm hitting a bit of a wall:
function getapi()
{
$api_response = wp_remote_get( "http://example.com/getXML" );
$data = wp_remote_retrieve_body( ...
1
vote
1answer
252 views
Transients API and multisite
we're using the Atlas HTML sitemap plugin, which caches the sitemap using the transients API with a call like:
set_transient( 'dmac_html_sitemap', $output, 60*60*24*7 );
Now, we also have a ...
1
vote
1answer
267 views
Transient / object cache maximum key length [duplicate]
Possible Duplicate:
Long option names fail silently?
The WordPress Transients API makes it easy to save expensive values and look them up later. If you install an object backend (such as ...
0
votes
2answers
364 views
is_wp_error() and handling errors
Im trying to build a function which grabs the feedburner "readers" using wp_remote_get(). I noticed that it frequently returned a value of 0.
I assumed at first that it was a WordPress error ...
3
votes
3answers
599 views
get_transient(), PHP switch(), and comparison operators
Im using a WordPress transient, which expires after an hour, to store a value which is an integer. Im trying to use switch() and multiple case() statements to evaluate if the transient exists or not ...
0
votes
1answer
147 views
Any insights into Transient API locking, cron and threading?
How does one go about locking down transient API requests for multiple threading? Has anything done some benchmarking, just how much can the transient API handle for multiple concurrent requests? It ...
0
votes
1answer
175 views
Compare transient data with a meta box value
So I'm not sure what would be the best way to go about this in terms of best practices and optimization.
Scenario:
I have query that parses an external XML feed and stores the data using the ...
4
votes
1answer
248 views
Does set_transient() overwrite/update transient option with same key?
Basically that's the question - I wonder if set_transient() overwrites/updates a transient option with the same key?
3
votes
2answers
743 views
wp-cron.php - How are WP's Cron transients removed?
I have a Wordpress Network that I am tasked with disabling the WP Cron and replacing it with an Apache Cron. I have set up a PHP script that when called by an Apache Cron will loop through all sites ...
26
votes
3answers
4k views
Are transients garbage collected?
This question got me thinking Transient RSS feeds in wp_options not removed automatically?
Transients are supposed to expire and be deleted. However the only way I see this handled is when transient ...
2
votes
4answers
298 views
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.
After much much pain and experimentation I ...