Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Twig template profiling?

Started by Paul Richter 7 years ago · 2 replies · 812 views
7 years ago

I am trying to improve the performance of my web page. According to the debug toolbar already present in Grav, the vast majority of the time is spent in the "render" phase. I suppose this refers to the rendering of the twig templates? Is there any way to get more detailed information about this phase, i.e. which part of what template eats up the most time?

There seems to exist something like that for symfony already, but I am not exactly sure how to activate this in grav.

Thanks in advance for any help!

3 years ago

Hello, have you found a solution? I'm dealing with the same issue and am also looking for the optimal profiler to optimize my pages.

3 years ago

@Watermann,

To monitor/improve performance of the site:

  • Frontend:
    • Did you examine the frontend using Lighthouse and implement its performance suggestions?
  • Server:
    • Have you read the docs on Performance & Caching and tried its suggestions?
    • Have you examined the server side by enabling debug in system.yaml and installing browser extension Clockwork?
    • Tab Performance shows a timeline of Grav's stages
    • Tab Views shows a timeline of Twig files/blocks

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 2 weeks ago
4 250 2 weeks ago
Support · by nwhitfield, 2 weeks ago
2 216 2 weeks ago
Support · by stell, 4 weeks ago
5 459 3 weeks ago
Support · by gravinator, 2 months ago
5 638 3 weeks ago
Support · by Gravver, 1 month ago
6 430 4 weeks ago