Performance considerations
See Bruno Meilick’s excellent notes: Remember this - Caching in Kirby.
Expensive computations
- Filesystem traversal, esp.
inventory()andindex()(recursivechildren()); - Image stuff, probably?
Memoization
See PHP cheatsheet.
Caching
Plugins
Staticache will give you the performance of a static site generator for your regular Kirby installations. Without a huge setup or complex deployment steps, you can run your Kirby site on any server – cheap shared hosting, VPS, you name it – and enable the static cache to get incredible speed on demand.
Debugging
See: Debugging with Xdebug.
XDebug + WebGrind