czorny813 - 3 weeks ago

Hello,

How best to optimize pyro to make the site work as fast as possible? what are the principles of optimization in pyro to make it work more efficiently

Thanks

ryanthompson - 3 weeks ago

From a backend perspective make sure you're on decent SSD and autoload with optimize -o and --no-dev options. Also make sure to make your .env file uses APP_ENV=production.

From a front end perspective use .path or .url off assets instead of .route('view') so that PHP isn't serving your images. Make sure live assets is turned off in your .env. Also if you're not on the latest v3.5 dev branch make sure to remove htmlcompress and it's closing tag from your layouts if you are using those. There's a performance issue there that was just fixed.