Php Cache On Request Class
2016-08-23
1 0 0
no vote
Other
Earn points
After going through phpThumb caching hell (lots of cached files in a dir, server freezing etc) I came up with this lib. When a user requests some content (say a resized image) an apache errordocument calls the lib which generates the content. The second time the same content get requested, apache will serve it directly without involving php or anything!
Sample usage
Copy this package into /dynamic directory of your website. write a in the browser /dynamic/320x200/yourimagefolder/yourimagesubfolder/image.jpg](http://[site.com]/dynamic/320x200/yourimagefolder/yourimagesubfolder/image.jpg) after that... refresh again.
php
缓存
一级
请求
Related Source Codes
Plug in management system based on Thinkphp6+Eleme
0
0
no vote
PHP statistics
0
0
no vote
Student homework score management system v1
0
0
no vote
PHP system background
0
0
no vote
PHP + MySQL student login registration reset funct
0
0
no vote
No comment