Caching HTML output with PHP

后端 未结 8 1460
时光说笑
时光说笑 2020-12-19 21:03

I would like to create a cache for my php pages on my site. I did find too many solutions but what I want is a script which can generate an HTML page from my database ex:

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 21:29

    You can get URLs like that using URL rewriting. Eg: for apache, see mod_rewrite

    http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

    You don't actually need to be creating the files. You could create the files, but its more complicated as you need to decide when to update them if the data changes.

提交回复
热议问题