regarding what to cache???
dustin at spy.net
Tue Sep 4 06:10:43 UTC 2007
On Sep 3, 2007, at 23:05, Ajinkya Nahar wrote:
> $query = SELECT * from
> $result = mysql_query($query);
> $memcache_obj->set($key, $result);
> Will this work??
> Please let me know your comments.
I don't know PHP, so I don't know what $result is, but I'd guess
that no, you couldn't cache that.
It's also probably not very desirable. I'm guessing that you're
doing something with that result set -- transforming it into some
object or representation suitable for display. That's the thing you
want to cache.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the memcached