[wp-hackers] Transient key best practice

Micky Hulse mickyhulse.lists at gmail.com
Tue Sep 10 18:51:46 UTC 2013


One last update to this thread, I noticed that my transients weren't
getting cached when using:

plugin_name + md5(values...)

When I shortened the key name, then it caching would work.

I took another look at the docs:

<http://codex.wordpress.org/Function_Reference/set_transient>

... and saw:

"Should be 45 characters or less in length."

I had overlooked that bit of info until now. Good to know! :)

Thanks again to everyone for the help!


More information about the wp-hackers mailing list