Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Calendar was identified as a performance drag during a performance audit.
The website has lots of fields and Views
Saving Views is invoked calendar_views_templates(), which loads each field -> field_info_field.
After that is invoked calendar_views_template_construct(), which changes Views.
It needs about 4 seconds to execute all requests.
This section of code should be checked out.
Comment | File | Size | Author |
---|---|---|---|
#2 | calendar-skip_views_templates-2414845-2.patch | 1.61 KB | maximpodorov |
profiler.png | 63.11 KB | m.lebedev |
Comments
Comment #1
m.lebedev CreditAttribution: m.lebedev commentedComment #2
maximpodorov CreditAttribution: maximpodorov commentedThe patch adds new setting to omit views templates creation.
Comment #3
m.lebedev CreditAttribution: m.lebedev commentedI think this is a good solution.
Comment #4
joelpittetYes this sounds like a good solution. I don't use the templates. That function could use a bunch of clean-up too but that could be a different follow-up patch.
Comment #5
Neslee Canil PintoComment #6
joelpittet@maximpodorov actually I'll take over some of the D7 and help with D8 maintainership so this patch has been committed to the dev branch.
Also, thanks @Neslee Canil Pinto!
Comment #8
Neslee Canil Pinto@joelpittet +1, thanks for you help.