Community

Why does Drupal clear ALL page caches after editing a node?

I'm currently learning about caching. I think I'm right thinking Drupal clears the page cache for all nodes after editing a single node. My question is, why not just clear from the cache_page table the node that has been edited, why does it need to clear all nodes? Could it be because blocks may need updating that contain page info?

Comments

Sounds reasonable

That sounds like a reasonable hypothesis. Certainly if one node changes, there could be a lot of other things affected.

drupalshrek
Maintainer of the VChess module visible in use at chess website Chesspos.com

nobody click here