Top 10 Performance Mistakes in Drupal
https://www.zyxware.com/sites/default/files/styles/user_image/public/pictures/zyxlogo.png?itok=J9t-ZEoU
BY webmaster
7 years ago
Technical-Solution
0 comments comment

There are a few common performance mistake that are commonly found in most Drupal sites. Here are the list of the Top 10 Performance Mistakes in Drupal that can easily be addressed by a simple change in settings or the addition of a module. The easiest way to solve performance problems in Drupal would be to prevent them in the first place. Contact us for a free consultation on how to build your Drupal website right.

Caching not configured
Failing to configure the cache properly or none at all is a major oversight found in most Drupal sites. Caching leaves a lot of room for improvement. Without a cache, Drupal has to be bootstrapped every time a request is made which means that its PHP logic should be executed and database queries have to be run which ultimately contributes to server load and decreasing page load times.

On a site with many thousands of visits per day, caching should be implemented at all costs. The simplest caching system in Drupal is one which anonymous users are given a static HTML page which had been generated the first time the page was requested. Drupal has a pluggable caching system which means you can use contributed modules to improve the cache. Boost is popular caching system used in Drupal.

Cache time incorrectly configured
Just as caching is important for speeding up of a Drupal site so is the timing of the cache or the cache lifetime, to be more specific. If your site has frequently changing data then caching time should be set to only a few minutes. If it is serving mostly static content to a majority of anonymous users then caching can set to be a many hours. Sometimes you might have to sacrifice recency of content for better performance. You would want to take a call on this based on the nature of your site.

JS Aggregation not enabled
A reasonable sized Drupal site will have a significant number of JS files contributed to the site through contributed and custom modules which naturally add to the page load times of the site. This can be solved by aggregating all JS files in the site. JS Aggregation is the process of combining the different JS files in your Drupal site into a single JS file. Drupal does provide basic Aggregation which should be activated and configured correctly.

CSS Aggregation not enabled
CSS Aggregation is the process of combining of the different CSS files in your Drupal site into a single file. The basic wisdom behind CSS Aggregation is same as JS aggregation. Although CSS files are not as heavy as a single JS script file, the number of CSS files are always usually higher than the JS files present in a site. CSS Aggregation can be done using the CSS Aggregation Module.

Views caching configuration not used
Views is an extremely useful module in Drupal and finds a lot of uses in most Drupal sites. Views are also resource intensive. Views provides a built in option for caching which should be enabled if you want to reduce performance overheads related to views.

Full size Images used with resizing via html attributes instead of Image cache based resizing
Drupal provides a good set of tools for handling all the images in a website via the ImageCache module. If your Drupal site is having an reasonably large image and you have to resize it via HTML to fit to a certain width, then the browser has to download the complete image and then fit it to the specified attributes. This process will automatically contribute to the page load time of the site. Using the ImageCache module, the very same image can be resized to the specified attributes before it is requested by the browser leading to a decrease in page load times.

Too many blocks
Blocks are an important component in the layout of a Drupal site. Having a lot of blocks degrades the performance of a Drupal site as a number of hooks have to be called. So it is a good practice to avoid the creation of unnecessary blocks.

PHP input format used in blocks and content
If the PHP input format is enabled on blocks and content, whenever these blocks and content are called, the hooks and callback mechanisms associated with executing PHP within these areas will also have to be called which leads to a decrease in performance. Therefore this would have to be disabled unless it really necessary.

Too many blocks enabled
Performance degradation will also occur on a Drupal website with a lot of unused blocks. Blocks will cause the associate hooks to be called each time they are called. Therefore it would be a good practice to have unnecessary blocks disabled on your Drupal site. Using a module like Contexts can ensure that block hooks are called only if a set of conditions has been satisfied.

Having a number of unused modules enabled on your Drupal site
Having a lot of unused, non-essential modules on your Drupal site can lead to a slight decrease in performance. It is very easy to overlook this factor but it is also the easiest to solve. Disable all non-essential unused modules. Just make sure that the modules you plan to disable are not required by any other module.


RELATED ARTICLE

/themes/custom/zyxpro_light/images/placeholder.png
close

on 04th April 2007 / by webmaster
Linux is the epitome of the FLOSS model. Technical Solution Linux installation Leave a reply Your email address will not be published. Required fields are marked * Dewey J. Corl (not verified) access_time 09 Jul 2020 - 23:14 Linux is not ready for the general public! (I am a Ubuntu user). For proof, 1. try to simply print labels on a Dymo label printer. It takes a LOT of work to get to the ease of label printing already available in Windows and Mac. 2. try syncing a modern Palm based PDA. Yes, jpilot and others will sync the main data, but pictures and midi files do not get transferred without a lot of extra setup. These are examples of applications that are not ready for the general public. Since an operating system only supports applications, Linux is not ready to be a common desktop for the general public. While we are waiting for the applications to catch up, keep up the good work!! Anoop John (not verified) access_time 09 Jul 2020 - 23:14 Dewey Yes you may be right. But these are not applications that a common man would use. A common man would use one of these applications - Internet browser, Chat Client, Email Client, Document Writer, Presentation Creator, Spreadsheet Editor, Movie Viewer, Music Player, CD/DVD Writer. Both examples you cited are more specific applications that only a small percentage of the whole population uses. It will take time before those hardware vendors identify the need from their perspective to address the Linux community. Krishnadas (not verified) access_time 09 Jul 2020 - 23:14 Dear Mr Anoop, Thank you very much for the free installation of LINUX done in my PC. I am getting immersed in the LINUX and seeing the versatility. To my surprise, I am able to read one of my old backup CD(wherein lot of my valuable file exist) done in DIRECT CD wizard (a custom cd writing software of Easy Cd creator in WIN98) which could not be read in XP. Installation of old version of easycd creator/direct cd program was not possible in XP. I thought that possible i lost all data. Very pleasant start! Srikanth N. S. (not verified) access_time 09 Jul 2020 - 23:14 Hi Anoop, My friend is thrilled with Ubuntu. One of his grouses with windows was that after OS installation, everything else is to be installed separately which is a real headache. WHereas if u install Linux, everything is installed as a package and he is thrilled to bits! Let linux installation spread in Trivandrum and your service in this direction is highly appreciated. Kepp up the good work Regards. PDA Freak (not verified) access_time 09 Jul 2020 - 23:14 Is it possible to install linux on a packardbell notebook ? Pagination Current page 1 Page 2 Next page Next › Last page Last » Add new comment
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.