Summary of several small Drupal problems in the work

Source: Internet
Author: User
Tags first row drupal varnish

Brief analysis and comparison of Drupal performance modules

Original article:

Varnish

We have ed various caching solutions available for Drupal. we recommend listed Varnish, Boost and Authcache modules. we have Med a number of tests using these modules. we tested over 1000 pages from different locations. the average page load time without any caching was abve 4.0 seconds. the average page load time with Drupal's default caching was 2.5 seconds. the average page load time with the Authcache module was 0000ced to 1.8 seconds. the average page load time with the Boost module was 1.7 seconds. the average page load time with Varnish module was 1.5 seconds. therefore we preferred using the Varnish module. these stats are for this site only, the results may vary for other sites.

My simple translation:

Testing with 1000 different pages,

1. No Cache module is required: the average loading time is more than 4 seconds;
2. Use drupal's built-in cache: the average loading time is 2.5 seconds;
3. Use the Authcache module. The average loading time is 1.8 seconds;
4. The average loading time of the Boost module is 1.7 seconds;
5. The Varnish module is used, and the average loading time is 1.5 seconds;

-----------------------------------------------

How to implement dynamic view output

1. On The view properties page, select header
2. Select Global: Text area
3. Overwrite the output in the pop-up box.
4. Only the fields displayed by Replacement patterns can be called.
5. Check * Use replacement tokens from the first row.

-----------------------------------------------

The correct method to add built-in images to a Drupal topic

When you add images that come with a subject to a drupal topic, you may encounter Path Problems. You can use the following methods to add images correctly on the page:

/Image/act-title.jpg ">

When outputting a url in the php tag, you must use $ base_path to splice the url with the topic path and add the path of the static image in the topic directory to display the url correctly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.