Closed bjornpost closed 9 years ago
@bjornpost ah, this is what I was thinking about when I mentioned memcached in #130. Like you pointed out, not calling ->toArray
will work for a local array cache, but, if using something like memcached you'd either need DomainObjects to be serializable (unfortunately not possible #76), or call toArray
and hydrate
on read.
I'm not sure it matters right now, because the hypothetical memcached pheasant cache doesn't exist, but that's where my head's at.
Fixed in 594dba8.
When using
includes()
, methods defined on the included DomainObjects are not accessible. For example:Seems like an undocumented regression. Right now
ArrayCache::add()
adds$object->toArray()
, but it should add the entire$object
. Will create PR./cc @Jud