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 làm Responsive cho Commerce Checkout Tables trong Drupal 7

Hướng dẫn làm Responsive cho Commerce Checkout Tables trong Drupal 7

Providing a responsive checkout is an important feature of any eCommerce site. Drupal Commerce if themed correctly handles this fairly sweet; except for one element, tables.

CES 2012 - Được và chưa được

CES 2012 - Được và chưa được

CES 2012 đã kết thúc, đây là sự kiện giúp cho người dùng hiểu hơn về xu thế công nghệ trong thời gian tới

Hướng dẫn phân quyền trong Wordpress 3.4

Hướng dẫn phân quyền trong Wordpress 3.4

Wordpress thực sự mạnh mẽ cho cộng đồng bloger chuyên nghiệp, với những ưu điểm riêng biệt làm cho Wordpress ngày càng lớn mạnh và trở nên phổ biến. Bài viết này sẽ giới thiệu về các loại tài khoản dùng để phần quyền trong việc quản lý nội dung trong Wordpress, hiện tại Wordpress có 4 loại tài khoản chính là Admin, Editer, Author, Contributer, và Subsrciber

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

 

Diet con trung