Why is it that node_delete (which calls node_delete_multiple) empties all node cache even though it has the list of specific nids?
I have 200K+ records, all of which I would like to cache pre-emptively by entitycache module + Drush Entity Cache Loader (ECL). This is (obv) an expensive operation - but deleting even one node empties entire cache.
I realize that I can simply modify entitycache module to do exactly what I want - but I am just wondering about the rationale behind emptying entire cache.
DrupalEntityControllerInterface::resetCache(array $ids = NULL)
accepts list of IDs, but only developers can know why they decided not to use it in this case. And if you want to ask them, you should post a support request on drupal.org - here we could only guess and provide our opinions - not what this site is for.