PHP Caching - Is it faster to save in database or create a file?

后端 未结 4 1009
情深已故
情深已故 2021-02-06 01:16

I am currently caching dynamically generated PHP pages by saving them to a database with an expiry time field. If the page is requested again, the program checks for a unexpire

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-06 01:41

    Here's something interesting that I have never tried but have heard good things about. You can use Google Spreadsheet API to act as a database through http requests. It sounds (in theory at least) like it is an ideal resolution to a problem like this. Not an answer to your question just another option.

提交回复
热议问题