November Happy Hour will be moved to Thursday December 5th.
Hi,
I am looking for orphaned files in the VPP in our Episerver 6 R2.
I loop through all my VPP directories and find the files in each and count how many linked pages there are using SoftLinkCollection.
For example:
foreach (UnifiedFile file in directoryFiles) { string parentPageList = String.Empty; EPiServer.DataAbstraction.SoftLinkCollection filecollection = EPiServer.DataAbstraction.SoftLink.Load(file); }
But it times out as I would expect there to be quite a lot of intensive work on the site to loop all pages to see if the file is linked.
Is there any way I can improve the code to make it work better?
Hi,
I am looking for orphaned files in the VPP in our Episerver 6 R2.
I loop through all my VPP directories and find the files in each and count how many linked pages there are using SoftLinkCollection.
For example:
But it times out as I would expect there to be quite a lot of intensive work on the site to loop all pages to see if the file is linked.
Is there any way I can improve the code to make it work better?