Questions tagged [performance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
3answers
4k 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
718 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
348 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
111 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
325 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 ...
2
votes
1answer
126 views

Looping out a lot of entries.

Ok, so I'm looping through a lot of entries. It's a large request, and I had to up php memory limit to 512M. But I'm sure there is a less memory consuming way to do this. Also, I want to cache the ...
6
votes
1answer
170 views

Is using nested extends a wise idea or will it be a performance/maintenance nightmare?

Here's a basic example of using nested extends in Twig. I figured this is a probably common use-case. You have a very general _layout.html that contains your common CSS, JS, meta tags, etc. {# ...
2
votes
1answer
133 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 ...
6
votes
1answer
406 views

How many entries could the Craft database hold before it slows down?

I'm pulling in some RSS feeds using Feed Me (https://github.com/engram-design/FeedMe) and turning those in entries automatically using a cron job. You can imagine that producing a lot of entries over ...
2
votes
1answer
533 views

Can Control Panel Settings page become very slow with some plugins?

Despite my best intentions to build sites with minimal use of plugins (in any CMS) I have resorted to a dozen or so on one Craft site with about 25 sections and 1000 entries, to help with both CP and ...
3
votes
2answers
957 views

General speed/performance on large Craft build

Looking for hints and tips on speeding up and streamlining performance of a Craft site as we prepare for launch. The database is approaching 100MB and whilst it is a fairly large and complex build (...
2
votes
5answers
4k views

How to improve unexpectedly poor Craft performance?

We have a seasonal website which gets very popular around this time of year. This year we ported it from ExpressionEngine to Craft, for all the obvious reasons. We were very surprised to discover that ...
3
votes
2answers
280 views

Using prefetch or prerender

I'd like to use prefetching (All) or prerendering (Chrome only) to speed up my website performance. It pre-loads websites to instantly load them when navigating to them. Google does it for its #1 ...
1
vote
0answers
114 views

Faster MySQL query when joining data from a non-Craft table to a Craft table [closed]

I’m looking for a way to make a database query faster. The table parts has over 6 million rows. Each part row is associated with the manufacturers table (a couple hundred rows) by ID. When searching ...
5
votes
1answer
330 views

Globals versus Singles

We are building a restaurant site that has a banner image and some introductory text on each page. For pages that include content from a Channel, e.g. the wine list, we are using a Global to define ...
0
votes
0answers
97 views

Performance problems filtering lists

I have a site where I need to paginate and filter a list of businesses by different criteria. In the business entry, I’m using the Reasons plugin tied to about 8 different lightswitches which, when ...
1
vote
1answer
100 views

How can I server Craft transform assets statically (not through Craft/PHP)

I’m using Craft as a backend for an iOS app and theres thousands of asset requests. Having to go through php instead of straight through Apache is causing too much of a bottleneck. I want to use ...
0
votes
1answer
396 views

Troubleshooting Slow Craft Website - New Relic

I am troubleshooting a client website and I have installed new relic on VPS. Summary: RESP. TIME = 12,300ms USER CPU BURN = 7,000ms (56.9%) SYSTEM CPU BURN = 115ms (0.935%) Slowest components Count ...
1
vote
1answer
320 views

Craft model and populateModels() performance issue?

I'm getting a big performance hit on front end requests (+15 seconds) when using a model to store / use data from one of my custom fieldtypes, cp requests for the same data appear unaffected. The ...
0
votes
0answers
54 views

25s TTFB for one for-loop [duplicate]

I ask this question a few weeks ago, but could not fix this problem. Now i have minimize my code. i use this loop: {% for program in craft.entries.section('program_point').order('program_number') %} ...
2
votes
2answers
453 views

Server respond is very long (25s). Is there a way to optimize the perfomance?

Normally I'm not working that much with craft and twig syntax, so first of all sorry if I'm not that much into that topic (normaly html,css,js,jquery). There is one site which need so much time to ...
1
vote
1answer
285 views

How do I optimise this colossal query?

This complex query makes the server cpu run at 100%. {% set entries = craft.entries({ section: sectionParam, search: searchParam, relatedTo: relatedToParams, condition: ...
0
votes
0answers
76 views

TTBF about 30 seconds

i have a big problem on my site. One for loop requires more than 30 seconds. When i put the loop in a comment, the page loads shortly. So the loop must be the problem. Is there any trick to ...
3
votes
1answer
423 views

Is it possible to cache a faceted search form?

I have created a search form which allows user to search multiple categories groups and multiple categories within those groups. So I have Type [] Category 1 [x] Category 2 [] Category 3 ... ...
4
votes
1answer
536 views

How can I mitigate caching performance issues with Craft?

I ran into problems with the performance of one of our Craft sites. This showed up as: MySQL running out of memory and crashing, because Apache was using up all the memory in backgrounds tasks, ...
1
vote
1answer
105 views

How can I set live preview's minimum interval?

New Relic reporting seems to show a strong correlation between the previewEntry method's transactions and a couple of recent apdex-based alerts (the periods indicated by the pink background): (The ...
2
votes
1answer
252 views

Paginate performance issue

I was wondering if anyone else has experienced a serious performance hit when implementing pagination? By just using Safari's timeline, I can see my page takes 500ms to generate. After introducing ...
6
votes
1answer
369 views

What effect does nesting cache tags have?

What effect, if any, does nesting cache tags have? It seems like it would be redundant, but are there any inherent drawbacks? Recently, I can across an instance where I was using the {% cache %} tag ...
1
vote
1answer
246 views

Measuring Template Performance

I've got a news website built and I am in the process of improving it's performance. What would be the best way to measure the performance of my templates? I can use Chrome Developer tools to measure ...
0
votes
1answer
1k views

For performance is using a macro better than using include with the 'with' statement?

Which is better for performance? Using a macro for output in a for loop or calling an include using the 'with' params to pass data? Both are loading a file. But is stacking up a bunch of code in a ...
2
votes
1answer
520 views

Sluggish Asset Indexing

Craft is a miracle for us but we've hit a snag. We have about 100 products with around 10 images each. We've scraped the images from the old site and put them into the appropriately named folders in ...
1
vote
1answer
95 views

Can I cache an include for use elsewhere in a template?

I have an include that is doing a DB query (it generates a menu of entries) and that's used more than once on a template. Is there a way I can cache the first parse for later use to cut down on DB ...
2
votes
2answers
235 views

Performance of a categories list with post count

Let's say I'm outputting a list/nav of categories, with the count of entries in each category, as described in other questions: {% nav category in craft.categories.group('...') %} {% set ...
2
votes
1answer
347 views

Linking to specific entries in Twig: How performant is Reference Tags parsing?

I have a small menu of fixed entries that forms a sub-nav on a site. I'm currently using Reference Tag parsing to grab links to these entries: <li><a href="{{ '{entry:3666:url}' | parseRefs ...
5
votes
1answer
169 views

Many entry fields, only one db request?

Craft 101: I have entries with many different fields, so I'm doing something like this: {% set var = craft.entries.section('foo').slug('bar').first() %} {% if var %} {{ var.field1 }} {{ var....
2
votes
1answer
450 views

Saving entry in back-end with extreme delay

When making any kind of POST to the back-end of my craft install, the server will essentially hang for a significant delay each time. I have researched related issues and have disabled all plugins ...
2
votes
1answer
267 views

Performance issues from matrix vs rich text?

I'm finding myself using matrices a good deal on my site for a specific client. My client has little experience with any content management systems, and I liked the structure matrices could provide. ...
1
vote
2answers
474 views

Caching variables for use elsewhere in a template?

I have a long if/else block within a for loop in my template and I wanted to cache all of it (it loops over a Matrix field, checking for different block types on each row and outputs the correct code ...
3
votes
1answer
867 views

Caching and Memory problems. What is best caching method

I'm working on a website for a music / artist agency. On the homepage we need al the artist entries. More than 200. Each artist profile has an image, an image color extruder picker, some tags, ...
1
vote
1answer
374 views

Compress Craft Control Panel CSS and JS per environment

Is there a way to compress the Craft CSS for a specific environment? Currently there is a setting for Javascript, useCompressedJs, set to true by default. useCompressedJs Tells Craft whether ...
2
votes
3answers
2k views

Slightly-slow page load for blank page

Just wanted to check in to see if what i'm seeing is reasonable. Just trying to tweak the performance of a single-page Craft site, and basically working backwards to find bottlenecks. Following all ...
9
votes
1answer
2k views

Load balancing nodes configuration (3 Craft nodes behind F5 Big-IP)

Craft deployed and working well on one node. Now looking into load balancing 3 nodes behind a LTM device (F5 Big-IP). The server environment is the following: a GlusterFS replicated "shared" file-...
1
vote
1answer
653 views

Use cache instead of saving to database

With my plugin I am generating and saving a lot of data to a secondary table. Data that can be generated on the fly that is associated with entries. I have noticed a performance hit and was given a ...
1
vote
0answers
210 views

Performance and cache when using entry type templates and getSegment

I'm working on a site that will end up having 30-40+ structure sections which are sharing templates and will be using about 10 different entry types. (This would probably be much easier if I used ...
9
votes
1answer
959 views

Is there a way to override the template caching system?

We're in the process of building a restfull backend in craft. We had sluggish response times due to the amount of queries done by craft on a an entry listing. Each entry had about 3 levels of nesting ...
6
votes
1answer
604 views

How can I reduce the number of queries when including a related item within a for loop

I've created an alphabetical index of entries in my template. The code I'm using is in the gist below: https://gist.github.com/jamiepittock/2635516e95317e5c6ed6 It results in a layout like the one ...
3
votes
1answer
2k views

Long 'Deleting stale template caches'

Is it common to have a (near)constantly running 'Deleting stale template caches' task ongoing? I commonly log in to see a task still pending several hours after the last change to the site was made, ...
2
votes
1answer
192 views

How might big Matrix/Relationship fields affect front-end CP performance?

I frequently run into front-end performance issues in EE CP pages, where I have a big Matrix field (100+ rows), or a Playa field with a long list of entries (3000+ relatable entries), or worst of all, ...
9
votes
1answer
417 views

Caching not working on page with asynchronously loaded asset transforms

I'm using PictureFill on a large page, containing many image transforms, that doesn't seem to be caching despite most of the page being wrapped in {% cache %} tags. When I view the page after several ...
7
votes
1answer
765 views

Using “search” vs. “relatedTo” in a template

I have problems to understand the difference between search and relatedTo. From my understanding, this is a fulltext search on all fields. {% set entries = craft.entries.search(test).order('score') %}...