when I add a new property to this custom media type and run the razor script the new field is not getting recongnised. Ive tried republishing content page and republishing the entire site but still the new property is not getting recognised. What i think is happening is DynamicNode is reading an old cached version of the media item. So my question is how do i clear the cache that DynamicNodeis is using to refernce the media item.
how to clear media cache dynamicnode uses
I am using DynamicNode in a macro script to get a reference to a custom media type which is a property of a content page.
DynamicNode bannerNode = new DynamicNode(bannerId);
....
string imageNodeId = bannerNode.HasValue("bannerImage") ? bannerNode.GetPropertyValue("bannerImage") : "0";
when I add a new property to this custom media type and run the razor script the new field is not getting recongnised. Ive tried republishing content page and republishing the entire site but still the new property is not getting recognised. What i think is happening is DynamicNode is reading an old cached version of the media item. So my question is how do i clear the cache that DynamicNodeis is using to refernce the media item.
Thanks
lj
Delete the ExamineIndexes folder and all contents inside App_Data/Temp, you will need to stop the application pool first as some files will be locked
cheers i used examine management in the developer section and solved my issue.
Accidentally marked my thankyou message as answer how do i undo this
Great it's fixed, unfortunately you can't undo marking a solution.
is working on a reply...