I added a new property to a document and when I want to get the property with Node.GetCurrent().GetProperty("alias"), the property doesn't exist.
When I republish the document, I get the property value, then I republish the entire web site, but it still doesn't work, just the document I republished previously works.
How can I refresh the cache to access to my new property ??
republish entire site doesn't actually publish nodes (make new values public), it just refreshes the disk cache. Therefore to access the value of your new property, you have to publish the content manually (or publish all child nodes).
Can't acces new property with Node
Hello,
I added a new property to a document and when I want to get the property with Node.GetCurrent().GetProperty("alias"), the property doesn't exist.
When I republish the document, I get the property value, then I republish the entire web site, but it still doesn't work, just the document I republished previously works.
How can I refresh the cache to access to my new property ??
Thank you.
Hi KoosMos,
republish entire site doesn't actually publish nodes (make new values public), it just refreshes the disk cache. Therefore to access the value of your new property, you have to publish the content manually (or publish all child nodes).
Pavel
Thank you, it solved my problem.
is working on a reply...