Template caching for virtual_host* files

Version 1.43


The template files: /usr/local/directadmin/data/templates/virtual_host2*.conf are read from disk many times. Optimization in the file loader which saves the loaded files into memory for certain cases like this. The speedup on the rewrites should be significant if you have many domains, subdomains and/or Users. This also includes custom templates, and nginx templates. The cache also only applies on a per-process basis... meaning you don't need to worry about the master directadmin process caching an old file. It's only cached within a child process. Handy when a User has many domains. Also very handy with the dataskq (1 process) when rewriting everything. Tipping point to implement this was for the new Linked IP feature, which would do many lookups on the IP files, where the data wouldn't change over the span of those reads. http://www.directadmin.com/versions/index.php?id=1377

Interested to try DirectAdmin? Get a 30-day Free Trial!