SoftLinkCollection timesout



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?

Nov 27, 2018 17:45
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.