Can any one help explain this output in my log. I have memcache-client
and
cached_model setup for a model City but when I run my app, this is the
output I get (this is on a second pass so theoretically the data is
already
in the cache).
MemCache Get (0.000469) active_record:City:1802387
City Load (0.001015) SELECT * FROM cities WHERE (cities.id =
1802387)
LIMIT 1
MemCache Set (0.000776) active_record:City:1802387
MemCache Set (0.000753) active_record:City:1802387
MemCache Set (0.000755) active_record:City:1802387
So it appears to get the object from the cache and yet appears to query
the
dabase again and then set the object into the cache 3 times in t row???
I see this behavior no matter what model I extend from CachedModel so
it’s
not just this particular model object that does this.
Thanks
Mike