For example, I have a static page based on the phpcms system. The page is a news content page. I want to create a "Latest News" module, because it is a static page that cannot display the latest articles in time, I have several ideas: 1. frequent full-site generation of all pages, but too troublesome and time-consuming 2. use an iframe to reference... for example, I have a static page based on the phpcms system. The page is a news content page. I want to create a "Latest News" module, because it is a static page that cannot display the latest articles in time, I have several ideas: 1. frequent full-site generation of all pages, but too troublesome and time-consuming 2. reference a dynamic page with an iframe. This dynamic page displays the latest news 3. use ajax to request the latest news
What is the general practice or a better solution? Don't hesitate to enlighten me!
Example: http://www.dayecn.com/science/2244.html
Reply content:
For example, I have a static page based on the phpcms system. The page is a news content page. I want to create a "Latest News" module, because it is a static page that cannot display the latest articles in time, I have several ideas: 1. frequent full-site generation of all pages, but too troublesome and time-consuming 2. reference a dynamic page with an iframe. This dynamic page displays the latest news 3. use ajax to request the latest news
What is the general practice or a better solution? Don't hesitate to enlighten me!
Example: http://www.dayecn.com/science/2244.html
Http://news.sina.com.cn/c/2015-02-28/024431550484.shtml
I read the popular blog on the Right of Sina news and used ifrmae.
Essentially, different cache policies coexist.
Script: src embedding is another solution
Iframe is basically a disaster that should be eliminated.
Ajax code is relatively complex and the speed is lower than that of script: src (requests are sent only after js is run). It is not recommended.
The remaining scripts: src and static generation have their own advantages. See the situation (in fact, they can be combined. The script: src link can be another static production content ......)
Ssi
Shtml
Pls google it !~
So troublesome
Include 'your _ latest_news.file ';
Then, how long does the cron job generate the your_latest_news.file?