In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how to set up the static Jspxcms page". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Generating static pages is one of the ways to improve the speed of website access. Static pages do not need to be parsed by servlet containers such as tomcat, and html pages are directly sent to browsers by web servers such as apache or nginx, thus improving the speed of website access and reducing the pressure on the server.
Static pages can be set in the column or in the model. If the column does not set static page-related properties, the static page settings for the corresponding model are read.
1.1 column static page settings
Enter the column modification interface, you can see the static page related settings. If there is no relevant field, you can configure it in the system field of the corresponding model.
Static page settings include column page static page and document page static page, which can be turned on or off respectively.
Path variable
Column ID: {node_id}
Column code: {node_number}
Document ID: {info_id}
Year: {year}
Zero month: {month}
Date: {day}
Default document: yes or No. If it is the default document, the url address ends with a slash and the file name and suffix are not displayed. For example: / news/domestic/, otherwise the url address is: / news/domestic/index.html.
Static mode: whether the relevant page will be generated or updated automatically when the document is added.
Static pages: refers to the number of pages on the column list page. When the amount of data is large, the list page usually has many pages, if there are 10,000 pieces of data, 20 pieces per page, there will be 500 pages. If you add one document at a time, that is, a static page that triggers an update of 500 pages, it will take a lot of time. At this point, you can set the number of static pages. If you automatically trigger the generation of list pages, it is recommended that the number of static pages be 1 page, not more than 3 pages. After setting the number of static pages, the first n pages are static addresses and the last n pages are dynamic addresses. Since visitors to list pages usually only visit the first three pages, this method can reasonably solve the problems of access speed and time-consuming to generate static pages.
1.2 Model static page settings
In addition to setting static pages in the column, you can also set static pages in the model. And for the relevant properties set in the column, the relevant settings of the corresponding model will be read.
1.2.1 Model of column
In the column modification interface, you can see the model of the column.
1.2.2 setting up static pages
Then find the corresponding model in "system"-"Model Management"-"column Model" and click "modify".
In the column model modification interface, you can see the corresponding static page settings, the meaning of the relevant settings is the same as in the column.
This is the end of the content of "how to set up the static Jspxcms page". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.