Doc: we use the phase member to distinguish the dir valid or not.

The Dir becames invalid when the Doc is evicted from the cache