While coding the voting API integration over here: #865462: Voting API I've stumbled into an issue:
Voting API integration generates records in a particular cache segment, and votes may or may not be on nodes or comments. Basically the node plugin would need knowledge of the votingapi plugin to be able to insert into the cache segment at the same time, if it doesn't then when searching for the latest timestamp, and all the cache segments are AND'd together, nothing will be found.
I think we need to allow some cache segments to be OR'd together, so that we'd lose the ability to say find the latest vote on a 'page' node, but we'd always have the ability to find the latest vote or the latest 'page' node timestamp.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | views_content_cache-870132.patch | 10.17 KB | steven jones |
| #2 | views_content_cache-870132.patch | 9.93 KB | steven jones |
Comments
Comment #1
steven jones commentedI guess we only need to worry about selecting the correct timestamp, not insertion. So just need to cleverly AND/OR the where clauses together, rather than just ANDing them together. I think plugins should decide if they can be AND'd or OR'd together.
Comment #2
steven jones commentedPatch attached.
Comment #3
steven jones commentedAdd some more docs.
Comment #4
steven jones commentedCommitted to CVS.
http://drupal.org/cvs?commit=401138