Cache 的技巧?

Your Message on Gaxed.com 看到一個 Cache 技巧:

For Gaxed I’m using some heavy caching to prevent it from going down to easily. The basic algorithm is: when a picture is viewed more than 50 times, it’s moving into the cache folder as a static JPG (the page URL will stay the same of course, acting as a permalink). This way, I don’t need to poll the PHP, the database, and I also don’t need to recreate the image using PHP image/ GD.

問題是 counting 要怎麼做比較好?用 直接做似乎不錯?反正掉了再去抓就好。

This entry was posted in Computer, Murmuring, Network, Programming, WWW. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *