Cache timeout and automatic update of the parent tree when a leaf is updated