Ariadne seems slow, how do I speed it up?
Ariadne is a complex system, it does require a reasonably fast server to run optimal. However, there are a few things you can do to make it perform better. The single most important optimizaiton is to use the cache as much as possible. Ariadne will cache every request, if allowed. You can set this up in the cache dialog, through the 'Set caching for ...' menu option.
You can change the caching setting per directory. At least set the cache to 'Refresh cache on Change' for images, so make sure most images are in seperate directory if you don't want to do this for the entire site.
Caching is not without its dangers. If you have a newspaper cached for two hours, that means that only once in every two hours the content of the newspaper will update. So play with the settings a bit untill you're satisfied.
If you cannot use the normal cache, because the site is an intranet and shows
custom content for each seperate user for instance, the private cache may come
in handy, see the PINP function
Another thing you should be aware of is that each call using the PINP
parents() is a call to a database system. These queries can become
complex, so always try to use them as sparingly as possible.
It is usually a bad idea for example, to call templates recursively. This means if you call a template via ls(), don't use ls() in that template again. Use find() instead to get the entire resultset in one go.
Something else which may help is to calculate urls you need often once, and use putvar() to make them available for other templates later on, like the site url and a url to the graphics directory.