0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

案: HTMLを遅延生成するCMSとか

Posted at

mod_rewriteを使ってこういうのどうだろうか。mod_rewiteのコストが気になるところ。

初回アクセス時

  1. ID 123の画面を表示するリクエスト: GET /items/123
  2. ファイルがないなら、CGI的なプログラムを起動
  3. ID 123の情報とテンプレートを組み合わせてHTML生成
  4. DocumentRoot/items/123に静的HTMLを保存
  5. HTMLを返す

二回目以降

  1. ID 123の画面を表示するリクエスト: GET /items/123
  2. ファイルがあるなら、返す

更新

  1. ID 123の情報を更新、DBに格納
  2. ファイル/items/123を削除
0
0
5

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?