Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Twig template profiling?

Started by Paul Richter 7 years ago · 2 replies · 563 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 Thomas, 1 week ago
2 57 15 hours ago
Support · by Anna, 3 days ago
2 65 18 hours ago
Support · by Justin Young, 18 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago