Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Site Settings TimeOut on GetFoldersSite Settings TimeOut on GetFolders
Previous
 
Next
New Post
1/8/2016 6:03 AM
 
DNN recreates user folders, as soon as the user logs in (including necessary parent levels).
The problem is not only a record for each folder in folders table, but also at least 3 records per folder in FolderPermission table (for owner and admins).
Using my turbo scripts (http://dnnscript.codeplex.com) improve performance of the procedures retrieving the data, but if you want to reduce cache size and transferred data from the DB server to the web server, you'll need to cut down the number of folders, which is easiest by deleting the empty ones on a regular basis.
I hope, DNN will add an option "use standard permission for user folders only", which would bypass storing the permissions for user folders and just use default one, but this hasn't been considered yet for one of the next DNN versions.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/11/2016 12:04 PM
 
Got it, thanks for this information. For now we'll take the route of deleting the empty folders (and see about updating DNN to a version compatible with the turbo scripts).
 
New Post
1/11/2016 12:05 PM
 
Got it, thanks for this information. For now we'll take the route of deleting the empty folders (and see about updating DNN to a version compatible with the turbo scripts).
 
New Post
1/11/2016 12:21 PM
 
Here is a Powershell script that I use to get rid of the empty folders. Use *entirely* at your own risk.

# Now define a script block that will remove empty folders under
# a root folder, using tail-recursion to ensure that it only
# walks the folder tree once. -Force is used to be able to process
# hidden files/folders as well.
$tailRecursion = {
param(
$Path
)
foreach ($childDirectory in Get-ChildItem -Force -LiteralPath $Path -Directory) {
& $tailRecursion -Path $childDirectory.FullName
}
$currentChildren = Get-ChildItem -Force -LiteralPath $Path
$isEmpty = $currentChildren -eq $null
if ($isEmpty) {
Write-Verbose "Removing empty folder at path '${Path}'." -Verbose
Remove-Item -Force -LiteralPath $Path
}
}

# Lastly invoke the script block and pass in a root path where
# you want it to start. This will remove all empty folders in
# the folder you specify, including empty folders that contain
# nothing but empty folders.
#& $tailRecursion -Path 'enter the path here'
& $tailRecursion -Path 'enter the path here'

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Site Settings TimeOut on GetFoldersSite Settings TimeOut on GetFolders


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out