We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [performance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
29 views

Is it worth caching product blocks for use on a category page?

So we have a Commerce project that shows lots of products per page/category as per any standard store. Each product block comprises: Product name Product price Brand (via category field) [eager ...
1
vote
1answer
52 views

My month/year archive template code no longer works in 3.2 [closed]

My blog has a date archive page that uses a variation of this code. Here's the code that I've been using: {% set allEntries = craft.entries.section('entries').type(['posts','reviews']).limit(null)....
1
vote
0answers
47 views

What's the most performant way to get reverse related entries within an Element Query?

What's the most performant way to get reverse related entries within an Element Query? Here's a contrived example of this. I have thousands of "book" entries and thousands of "collection" entries. I ...
2
votes
1answer
62 views

Sprout reports timing out on thousands of records

I have sprout reports (twig template) exporting tens of thousands of records. Problem is that its timing out. I appreciate that this is expected and my only likely option is to up the server spec. Is ...
1
vote
0answers
135 views

Error while sending QUERY packet. PID=881 when using cache key

If I do: {% set cacheKey = block.id %} {% cache using key cacheKey if craft.app.config.general.cache %} {% for item in items %} <div class="swiper-slide ais-hits--item" data-id="{{ ...
0
votes
0answers
74 views

Craft on a cPanel hosting with CentOS and CloudLinux – I/O faults?

I'm running Craft on our shared hosting with PHP 7.2. No SSD. Performance is fine, but working in the backend, I often get hickups of several seconds (!), where nothing happens, everything stalls. ...
1
vote
1answer
34 views

Access pages data with fewer queries by creating an object in Twig

I have the goal of querying the database once for page info, and then using it to display information on select pages site wide. For example, I want to link the the contact page with using a url slug ...
1
vote
1answer
221 views

How to speed up a single entry page with Eager Loading

This is a single entry page. I have an assets field of imageGallery which allows multiple images to be uploaded but it could also be empty. I want to use the first image at the top of the page (if one ...
2
votes
1answer
600 views

Craft incredibly slow site performance

I am experiencing incredibly slow site performance. This extends to loading the control panel (/dashboard, /login). This only happens when I put the site on to my hosting, locally using MAMP it runs ...
1
vote
0answers
94 views

Eager Loading Entries - Creating a Navigation from a structure

I have a multi-level structure in Craft that is being used for navigation. As part of this I have a few different entry types, but each entry that links to a page has a entry-field of singlePage. At ...
3
votes
1answer
133 views

Craft periodically goes down due to plugin migrations

Our application seems to be crashing periodically, on a seemingly unknown cadence. Sometimes it goes down once every few days, and sometimes (like today, when I'm at the end of my rope) it goes down ...
1
vote
1answer
1k views

Slow performance/Long response times

I am running craftcms3 and commerce2 on virtual machine composed of Centos 7, Apache 2.4, PHP 7.2 and MySQL 5.7.22. It seems almost impossible working with the control panel with such huge response ...
1
vote
1answer
68 views

Correctly using eager loading in Plugin development

I'm trying to get some data with eager loading, which results in more queries than before. Is there another way to tune down the number of queries as low as possible? As you can see i only need the ...
1
vote
1answer
106 views

Improving page performance issue

I'm trying to speed up this page: http://planned2perfection.co.uk/what-we-do Yes it has a lot of images but I think it's TTFB that's the issue here. It's built with Structures which I'm thinking ...
1
vote
1answer
72 views

Entry Count plugin performance / template optimisation

I'm using Ben Croker's Entry Count plugin in my News channel but have noticed a huge performance hit, I know its probably down to how I am loading the entries in to my template so I am looking for ...
1
vote
1answer
217 views

MySQL CPU pegged on specific query

Very similar (almost exact) to this question: Poor performance on midsized site / Queries without index? CPU keeps getting pegged to 100% for MySQL, which makes the admin interface very slow (the ...
3
votes
1answer
93 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?
2
votes
0answers
115 views

Filtering products by categories and showing number of products related to selected category

I currently have about 420 products and over 100 of categories to choose from for each products, showing the list of categories and filtering it, works fine, and performance is not too bad when it's ...
2
votes
1answer
485 views

Recommended approach for integrating a CDN with a Craft site

I realize there are lots of options out there, but I’d be interested to know what service folks would recommend for integrating a CDN with Craft? It'd also be helpful to know what the general pain ...
2
votes
1answer
404 views

Why is Craft extremely slow when using a shared, external database?

Every now and then I work in developer teams where we all use our local development environment to work on the code, but share the same database on a remote server (like discussed here etc.). Most of ...
0
votes
0answers
104 views

Best way to improve complex query?

This question is related to a previous question I asked: Sort entries in a category via entry field I have a page that is running the same query from the previous question: {% set businesses = craft....
2
votes
1answer
45 views

Can I set the same relation in a field multiple times?

My customer wants a videoplaylist for users. Idealy I'd like to have a assets relation field for the playlist and relate all the videos in said playlist. The problem is if a user wants the same ...
0
votes
1answer
793 views

Laravel Homestead installation nightmare

I'm running Vagrant/Virtual Box on a Windows 10 host. I originally installed Craft on a Vagrant Scotch Box (https://box.scotch.io/). The admin panel was running a little slow so I tried installing in ...
1
vote
0answers
155 views

Craft 3 improvements to relationship querying?

I've been using Craft for a couple of years now and I do love it, however I consistently run into massive performance issues with it. I heavily rely on caching and eager loading - however this doesn't ...
1
vote
1answer
220 views

entries.saveEntry not triggered by ResaveElements task

I've got a plugin that does a thing when an entry is resaved. It works great. However I need it to fire for every single entry to build some data. craft()->on('entries.saveEntry', function(Event $...
0
votes
1answer
290 views

Does Craft CMS support these features? [closed]

I am evaluating different CMS. I need to know if Craft CMS supports these features: Preview function for different devices, screen sizes and screen configurations(portrait/landscape) Is it possible ...
3
votes
1answer
382 views

Poor performance on midsized site / Queries without index?

I'm running a mid sized website (couple hundred articles, between 30-50k visits per day) on a Digital Ocean 16GB / 8 Cores web server and I have two questions: Most of the time the website runs ...
1
vote
0answers
769 views

PHP memory limit, is 1024 MB too much?

I just had some problems with an update exhausting my memory. But I already had the PHP memory limit at 512 MB, and I had to take it up to 1024 MB! I know this is relative but, is this too much? How ...
1
vote
0answers
411 views

Superslow loading of pages in Craft locally

I am having trouble pinpointing the issue but I am struggling with some of my pages taking an absolute age to load. For example; It might be a local MAMP issue, but some pages load fine and I ...
2
votes
0answers
139 views

Neo performance (large page)

I'm using Matrix and Neo to build out quite large, complex entries. On larger pages (70+ blocks each with one-multiple sub-blocks) the performance is taking a bit of a hit taking upwards of 40 seconds ...
1
vote
1answer
663 views

Caching and TTFB with Craft

I've just launched my new site here and I'm playing around with the caching options with Craft. I'm hosting my site with Siteground which gives me access to their Supercacher option, it offers Static ...
1
vote
1answer
104 views

Help needed with 2 node setup

I am setting up 2 node cluster with GlusterFS for shared file system. I have mounted the shared mount on each of the nodes but when I try to access login page I get this /data/websites/websiteapp/...
6
votes
4answers
359 views

Which is best practice, SET or FOR?

On my home page template I include a couple of extracts from single entries and I'm not sure which is the best/most efficient way to call them. {% for entry in craft.entries.section('information')....
2
votes
1answer
210 views

Better way to group by category and include full category entry

The basic idea is that I want to group my entries by category, but I want more than just the category title—I need the entire category entry. My previous post alludes to this, but I've since ...
1
vote
0answers
107 views

Craft 2.6 CMS Posts Overloading Servers

We've had a half a dozen cases now of people editing content in different Craft 2.6 sites taking down our webservers. One staff member here editing a basic entry in the CMS has taken down a large ...
0
votes
0answers
166 views

Eager Loading not reducing the queries

Related to this previous post. But I have created a new post with more information. Understanding Eager Loading So My template code with Eager Loading looks like this. {% set articles = craft....
2
votes
2answers
1k views

Understanding Eager Loading

I am trying to get to grips with Eager Loading. I have the following code: {% for article in entry.relatedArticles %} <div class="c-card // l-card--third"> <a href="{{ article.url }}">...
2
votes
1answer
82 views

How to understand this exception error in context?

I have been trying to fine tune the performance of a heavy page: see Category query very slow on multilingual site It appears that my initial hope of getting the page under 2 seconds was not quite ...
1
vote
2answers
192 views

Category query very slow on multilingual site

I have a directory of sea ports with a google map that loads about 450 records. The map and listings and pagination work fine. On their own, I get a 2.5 sec page load average. However as soon as I ...
3
votes
1answer
693 views

Progressive Web App

Is there any way to think about building a site as a Progressive Web App when using Craft CMS? Any steps / plugins that can help build a site as a PWA to enable features like Add to Homescreen, ...
2
votes
1answer
326 views

Query all categories once and get individual categories from array

I am working on a site that needs to both list all categories and also pull out individual categories by their id. I would like to query the DB once for all the categories (to improve performance), ...
3
votes
1answer
78 views

A more economical method of building an archive menu?

I seem to be having trouble with the performance of my site (on localhost) after including this object. Im using it to build a menu for an archive of the posts section which has about 2,500 entries ...
9
votes
3answers
2k views

Creating partials outside of the templates folder

I'm interested in building a highly modular Craft site in which my folder structure might look something like this: - craft/ - modules/ - hero-banner/ index.html scripts.js styles....
2
votes
1answer
497 views

Slow initial response time when website has been idle?

I noticed my Craft website is slower to load when it has been idle for awhile. It can take up to 3-4 seconds for the first load, and then it goes down to about 500ms (which is fine) after the first ...
1
vote
1answer
179 views

How to optimize nested reverse relations?

I have the following situation: A section called "membership" and a section called "member". Within the "member" section I can choose one or more memberships. Now I'd like to display all memberships ...
4
votes
3answers
3k views

Expected performance benefit of using a non-file CacheMethod (Redis, Memcache)

I'm wondering what kind of performance increase, and in what situations, I might expect from using Redis or Memcache over the default file-based caching. I know template caching always comes from the ...
5
votes
1answer
690 views

Using multiple sections VS a single section with entry types

I'm just planning ahead for a project and was hoping for a second opinion. I'm going to be making a site that will have about 7 different types of entry - all of which have different fields/URL's; ...
2
votes
1answer
316 views

Are there any advantages of updating from PHP 5.4.40 to 5.6?

Simple question, are there performance gains or any other benefits to make it worth the effort of updating the server?
6
votes
1answer
109 views

One large plugin vs multiple smaller plugins

I'm finding that occasionally (especially on larger sites), there are little bits of functionality that I need that Craft doesn't offer out of the box. The functionality is usually simple and ...
1
vote
1answer
322 views

Memory usage in sub tasks vs. regular tasks

I'm currently implementing a task-based application, which pulls some data from an external API before creating a number of entries based on the payload. After creating the entries, the app will need ...