Number 3: Performance - 5 lổi cần tránh trong Drupal Website

Number 3: Performance - 5 lổi cần tránh trong Drupal Website

>>Number 1: Architecture: 5 lỗi cần tránh trong Drupal Website

>>Number 2: Security 5 lỗi cần tránh trong Drupal Website

>>Number 3: Performance - 5 lổi cần tránh trong Drupal Website

>>Number 4: Infrastructure - 5 lỗi cần tránh trong Drupal

>>Number 5: Maintenance - 5 lỗi cần tránh trong Drupal

Performance is crucial for providing a great user experience. If the site is slow or balky, even great functionality won’t keep the site visitor engaged.

Number 3: Performance - 5 lổi cần tránh trong Drupal Website

Best Practices

The first action for improving performance is analyzing what the website is doing. With the answer to this question, optimize as much as possible, then implement caching.

Analyze—Tools:

Optimize—Common Problem Areas:

  • ŽComplex queries that take too much time and don’t use an index.
  • Functions that are called too often.
  • Keeping unused modules enabled on your site. Disable any unused modules.
  • Misconfiguring cron. See more about configuring cron.
  • Using the default views pager, which requires an additional COUNT query. Use Views Litepager, which provides pagers without the count function.
  • Database logging (dblog) is enabled by default in Drupal 7, and errors can fill up your database quickly. One common solution is to use syslog instead, but this merely masks the problem by making the logs less accessible. A better solution is to fix all PHP notices and warnings to reduce logging overhead.
  • Use the Fast 404 module to serve static 404s for image, icon, CSS, or other static files, rather than bootstrapping Drupal.
  • Not aggregating CSS and Javascript files. See how to turn CSS and JavaScript aggregation on in Drupal.

Caching—Common Mistakes:

  • ŽMost common: No cache strategy at all. Not taking the time to understand how content can be cached (per user, per group, per role, etc) is the worst mistake.
  • Caches cleared too often.
  • Caching at too low a level; such as using views cache instead of Blocks or Panels pane cache.
  • Basic caching, such as block caching or panels pane caching.
  • Caching strategy too complex for real needs of site.

Recommended resources

Practical performance tips in Acquia's Library: Improving website performance.

Thanks to my colleague, Mark Sonnabaum for reviewing content in this blog post!

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Hướng dẫn cấu hình MailChimp.module trong Drupal

Hướng dẫn cấu hình MailChimp.module trong Drupal

To integrate MailChimp into your Drupal site and Drupal accounts you we need to configure it first. Here’s a step by step tutorial on how to do that.

Top 10 ứng dụng dành cho Kindle Fire không thể bỏ qua

Top 10 ứng dụng dành cho Kindle Fire không thể bỏ qua

Hiện nay có rất nhiều ứng dụng đã được phát triển để dành cho máy tính bảng Kindle Fire. Sau đây là 10 ứng dụng hiệu quả và phục vụ tốt nhất cho những yêu cầu của bạn.

70 Best Free Google Android Apps(P2)

Những ứng dụng giải trí từ android

Some months back we mentioned about 21 Best Google Android Applications, now today we present you 70 Free Google Android apps...

Công ty diệt chuột T&C

 

Diet con trung