Hi there,
I'm currently testing a script meant to fetch some pages based on a mix of general page-class properties, and page-item values. The query works fine, but if a pageitem value is updated, it is not registered before an app-pool recycle has been performed. It's like the values are cached, and not caught by the query. Any idea's or solutions would be greatly appreciated.
var Campaign = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPagesByAreaID(1306).Where(x =>
x.Active &&
x.ActiveFrom <= DateTime.Now &&
x.ActiveTo > DateTime.Now &&
(
Convert.ToBoolean(x.Item["AlleM_glere"].ToString()) == true ||
x.Item["ValgteM_glere"].ToString().Split(',').Contains(BrokerID.ToString())
) &&
Convert.ToDateTime(x.Item["LaasFra"].ToString()) <= DateTime.Now &&
Convert.ToDateTime(x.Item["LaasTil"].ToString()) >= DateTime.Now
);