Optimization settings of DiscuzX Forum

Source: Internet
Author: User
In the Discuz website creation tutorial, the user group, administrator, and background Administrator settings are certainly quite a lot of content, but each one must be carefully set up. today we will discuss how to optimize your disucz Forum. Since the upgrade to discuzX2, many people have said that there is no 7.2 faster speed. how do you set up forum optimization? Next, let's take a look at how I generally describe how to set up the Discuz website building tutorial User Group, administrator, and background Administrator. there must be a lot of content, but each one must be carefully set, today we will discuss how to optimize your disucz Forum. From upgrade DiscuzAfter X2, many people say that the speed is no more than 7.2 faster. how do you set up forum optimization? Next let's take a look at how I optimize it. DiscuzForum!
Content:
1. backend -- global -- performance optimization -- (Forum page cache settings, memory optimization, and Server optimization)
2. backend -- global -- SEO settings -- url static
3. config_global.php in config under the FTP directory

I. backend -- global -- performance optimization -- Forum page cache settings
You can set it according to the background prompt. if it is not set, it will not affect much. if it is set to 0, the cache will be disabled. the recommended settings are as follows:


2. backend -- global -- performance optimization -- memory optimization
Enabling the memory optimization function will greatly improve program performance and server load capabilities. the memory optimization function requires support from the server system and the PHP extension module, currently, the supported memory optimization interfaces include Memcache, eAccelerator, Alternative PHP Cache (APC), and Xcache. Memcache is recommended.
The settings here need to be used together with the config_global.php in the config under the Directory:
1. to enable Memcache, you need to enable config_global.php search.

$ _ Config ['Memory '] ['memcache'] ['server'] = '';
Change

$ _ Config ['Memory '] ['memcache'] ['server'] = '2017. 0.0.1 ';
2. other eAccelerator, Alternative PHPCache (APC), and xcacheare enabled by default. you do not need to modify the file. if the backend is supported, it will be enabled.
3. enabling gzip can also optimize the speed of your forum and enable config_global.php search.

$ _ Config ['output'] ['gzip '] = 0;
Change

$ _ Config ['output'] ['gzip '] = 1;

2. backend -- global -- performance optimization -- Server Optimization
1. delayed update of clicks: enable the topic views and attachment downloads check box.
2. JS file directory: cache Directory
3. enable Image delayed loading: Yes
You can refer to settings:


III. backend -- global -- SEO settings -- url static
Static URL not only improves search engine crawling, but also speeds up web page opening. X2 cancels full-site pseudo-static. For example, set:

After the settings are submitted, you can click on the top right corner to view the current Rewrite rule, select the rule that complies with you, and copy and save the rule to the root directory.
We often encounter the problem of pseudo-static. This article focuses on optimizing the settings, and focuses on how to set pseudo-static in different environments.

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.