hi, i want to add a simple caching to a blog demo. It should make a static copy of a page, so the PHP will not be called before viewing the page. I thought of creating filter with a postFilter method whitch should make that copy…but the problem is that i dont know how to do this can anybody give me some suggestions? thx in advance!
This is only beneficial if you have really-really huge traffic. (Like, your site is in the top 100.)
Technically, it is done by web server: it checks the URL against the set of cached pages, and in case of cache hit, PHP won’t be executed. Full page caching is quite simple with Yii, so that’s not the part you’re looking for.
I have read in guide about caching and i have tryied CFileCache, it seemed to work fine. But still, how could i make static copy of some page and save it in file system…? Any sugestion will be much appreciated.