There's a patch for node_load() here - <a href="http://drupal.org/node/111127">http://drupal.org/node/111127</a> - has been sitting at RTBC for weeks though and just gone stale again.<br><br>Since terms, users (hopefully, soon) etc. have almost exactly the same code for loading now, it'd be easy to add the same pattern there too, and I was thinking about trying that if node_load() gets in.<br>
<br>The new core field API also allows objects to declare themselves as already cached - so the field cache is skipped for those objects and we save filling up memcache bins with the same stuff, so no issues there.<br><br>
However I'm not sure what you mean by a global object caching strategy - actually the same code? Or just parallel APIs? Nedjo Rogers has a patch for the former at <a href="http://drupal.org/node/365899">http://drupal.org/node/365899</a> - adding cache_set/get to it wouldn't be hard at all (at least when loading by IDs, which is all we need really). Although I'd be tempted to add the caching in separate patches then unify it all later rather than trying to do both at once.<br>
<br>+1, anyway.<br><br>Nat<br><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
<br>
<br>
Josh Koenig wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Greetings,<br>
<br>
I'd like to take the community's temperature on developing a global object caching strategy for drupal core 7.0. In effect, this would mean pulling the functionality of advcache module into core, though the code would doubtless be a bit different.<br>
<br>
This has been previously discussed by Robert Douglass and Steve Rude, and I think both the short-term and strategic value here is clear. As memcached permeates the collective consciousness of the web-development community, and as "cloud" computing becomes more and more prevalent, best practices in architecture increasingly point towards caching full objects whenever possible.<br>
<br>
This also fits well with Drupal's existing architecture. There are great functional points (e.g. node_load()) to mount this functionality.<br>
<br>
I'm certain I'm not the only one thinking along these lines. Anyone want to throw out their ideas?<br>
<br>
cheers<br>
-josh<br>
<br>
</blockquote>
</div></div></blockquote></div><br>