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

 
Broad Match Modifier: từ khóa mở rộng bổ sung

Tìm hiểu về Broad Match Modifier

Chúng tôi đã có một bài viết giới thiệu 4 dạng từ khóa trong quảng cáo google adwords: từ khóa mở rộng, từ khóa cụm từ, từ khóa chính xác và từ khóa phủ định. Hôm nay, chúng tôi tiếp tục giới thiệu thêm một dạng từ khóa mới: từ khóa mở rộng bổ sung – Broad Match Modifier, từ khóa này có biên độ nằm giữa từ khóa mở rộng và từ khóa cụm từ.

COD - Conference Organizing Distribution

Giới thiệu Conference Organizing Distribution phát triển bằng Drupal

COD is a Drupal distribution to create sites for the organization of conventions and events. COD is an acronym from Conference Organizing Distribution.

www.automaticbacklinks.com nơi trao đổi backlink với các trang web có Google PR

Automatic backlinks nơi trao đổi backlink với các trang web có Google PR

Trao đổi backlink với các trang web có Google PR cao qua dịch vụ miễn phí của backlinks

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

 

Diet con trung