Questions tagged [optimization]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
50 views

Optimise this repeated entry query? (which groups entries by a shared field value)

This loop containing a query is (surprise surprise) proving very intensive. There is also a second very similar query on the page to get all of the events related to this year and list them by just ...
James Greig's user avatar
1 vote
1 answer
119 views

Eager loading results in more queries

From what I understand it is wise to always eager load assets, I used it successfully in other cases, but here it results in a more queries, not fewer. I am trying to eager load an asset in a matrix ...
fdelaneau's user avatar
  • 123
1 vote
2 answers
234 views

Why is Craft loading jQuery via cpresources? And can I stop it?

I've been doing some performance checks on a website I'm building, and noticed that jQuery 3.5.1 is being loaded via cpresources: Why is it doing this? And can I stop it? I'm already loading jQuery 3....
Bryce's user avatar
  • 251
0 votes
0 answers
168 views

Optimize heavy query

I'm trying to show the nutrition information for restaurants using the following snippet {% set nutrition = craft.entries.section('nutrition').Ids() %} {% set ...
Mark H.'s user avatar
  • 381
1 vote
0 answers
153 views

Database Query in debugger consistently showing over 2000ms

In trying to optimize my Craft 3 site, I have discovered that it's apparently taking longer than expected to query my database. The duration for the apparent culprit is typically between 1900 and ...
Shad's user avatar
  • 451
1 vote
1 answer
131 views

Page with Matrix field slow to load

I am fairly new to Craft CMS but have a good understanding of it. I have a page that has a Matrix field to display staff photos and their roles. On the initial load of this page, it is slow, it takes ...
Pedro's user avatar
  • 171
3 votes
1 answer
140 views

Deleted matrix block means deleted data?

If I delete the Matrix block content (while editing an entry) does the associated is deleted as well or only the block but its data still remains in db?
Mark H.'s user avatar
  • 381
1 vote
1 answer
202 views

Optimizing With Http2 In Mind

My main config is Apache/Centos 7/WHM/Redis/OPCache/PHP7.1/MariaDb/PHP-fpm/Http2 and have optimized my server to a great degree. It's a 32GB dedicated HexaCore. I have worked really diligent to get ...
Vin's user avatar
  • 373
2 votes
1 answer
147 views

Plugin loading scheme

This is a fairly generalized question, maybe I completely missed where to learn about this, but I've always been curious about it as it'd help me be a little more aware of what would and would not be ...
taylor's user avatar
  • 1,128
4 votes
1 answer
946 views

Optimizing pagespeed

I'm not sure what is the cause for this page rendering so slow. I thought it was the image transforms but I've removed them and still it's really slow to render. Page in question: http://dharmaavenue....
j00lz's user avatar
  • 769