Closed adamcapriola closed 12 years ago
That URL should only be called for a background fetch, and that should only happen when the transient doesn't exist or has soft-expired (is out of date, but still exists). If you want fewer of those, just increase your expires time so your transients last longer.
Good point man, I actually looked through the code a little more a week or so ago and realized the same thing. I adjusted my expires times and things are straight now.
Yoooo,
I run a database type of website that has a lot of entries (like 5,000 at the moment) and I use TLC Transients for every one of them (and it kicks ass!).
But my CPU usage has gone way up since I started using it - my host says I'm getting a ton of POST request for http://mysite.com/?tlc_transients_request.
I assume that's exactly what's supposed to happen, but I was thinking of checking for a stored transient BEFORE running TLC Transients in my code to save on CPU usage. Is this a good idea, or does it defeat the purpose of it? This is what my function now looks like:
So I basically just check with get_transient before running tlc_transient. Good idea? Or not?