The call to ./directadmin --DocumentRoot figures out the DocumentRoot values for both http and https, for each domain, subdomain, and pointer. These values are very dynamic and be altered by various different areas, so the only way to know the true value is to fully compute it. Doing this on the fly for all VH on the box can take several seconds (in the scenario triggering this change: 18s). To speed things up, we'll create a new file: /usr/local/directadmin/data/users/fred/DocumentRoot.cache.json which is created if the file does not exist, or the cache.json file is older than the current httpd.conf (or nginx.conf, openlightspeed.conf). If the cache is newer than the httpd.conf, this cache is used for the --DocumentRoot call, greatly speeding it up. If the cache is not there, or older, then it's computed normally with the --DocumentRoot call, but written just as the output is generated by the call, ready for next time ---- T31880