[wp-hackers] Transient Size/Performance

Otto otto at ottodestruct.com
Wed Aug 31 00:01:00 UTC 2011

On Tue, Aug 30, 2011 at 6:41 PM, Brian Fegter <brian at fegter.com> wrote:
> Just curious if anyone has experience with storing associative arrays with
> hundreds of elements as a transient. The site in question uses persistent
> caching and memcached.

Just remember that transients aren't guaranteed, not when you're using
memcached. Your data could be lost if the memcache is cleared or
restarted or what have you. Memory based cacheing is lightning fast,
but impermanent.

A hit counter in postmeta might make more sense. Not as fast, but
instead of a cron job, the list of top 20 could be as simple as a
posts query. Of course, if this is a large traffic site (in hits, not
in bandwidth), that could also bring it down. Need more information.


More information about the wp-hackers mailing list