散步去郊外 | 【技巧】404 Funky Caching 這是一種用在大量抓同一個 php page 時所使用的 cache 技巧… Funky caching explained (from Simon Willison’s Weblog) Half-baked, and a little fried (from phil ringnalda dot com) Baking, funky caching, and tarballs for weblog cryo storage (from 0xDECAFBAD) 最原始在 PHPCon 發表的文件: Rasmus Lerdorf’s PHP Tips and Tricks (pdf) 作法其實很簡單:把 404 handler 指到一個 .php,由這個 .php 生 static page 出來,下次 http server 就不會再 call 404 handler (因為檔案存在了)。 |
回覆 |
|
XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。