Caching HTML output with PHP

后端 未结 8 1436
时光说笑
时光说笑 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.

    0 讨论(0)
  • 2020-12-19 21:34

    I use APC for all my PHP caching (on an Apache server)

    0 讨论(0)
提交回复
热议问题