1 Reply Latest reply on Jan 20, 2010 4:02 AM by wjm

    Previously-evicted nodes generating NODE_CREATED?

    wjm

      Hi, I apologise if this is a faq, I cant find the search functionality in the new ui here.

       

      Anyhow, we're running on 2.2.2 and when we use eviction we see that reading a node from the database often generates NODE_CREATED instead of NODE_LOADED.  Can someone explain why an existing node which has only been evicted would do this?  Shouldn't NODE_CREATED only be generated once?

       

      Best regards,

       

      Bill

        • 1. Re: Previously-evicted nodes generating NODE_CREATED?
          wjm

          Hi again.

           

          The workaround I've found here is to test the corresponding NodeSPI for isDataLoaded() when the NODE_ADDED cache event is processed.  If isDataLoaded() is true, then that seems to be a good indicator that the node is brand new, and has not been previously evicted.  We're running the cache in sync mode, and this is independent of whether we use 2.2.2 or 3.2.1 - both versions generate NODE_ADDED every time an evicted node is reloaded.   Boggle.