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

Twig template profiling?

Started by Paul Richter 7 years ago · 2 replies · 618 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 BenLaKnet, 6 days ago
1 130 3 days ago
Support · by BenLaKnet, 1 week ago
5 199 3 days ago
Support · by kskt, 3 days ago
0 61 3 days ago
Support · by David Meissner, 3 days ago
0 55 3 days ago
Support · by David Meissner, 4 days ago
3 100 3 days ago