Contribute  :  Support  :  Downloads  :  Forum  :  Links  :  Polls  :  Calendar  :  Directory  :  Advanced Search  
Geeklog The Ultimate Weblog System
Welcome to Geeklog
Thursday, May 15 2008 @ 11:32 PM EDT
   

Somebody think about cache?

GeeklogI seen another weblog product, maybe phpweblog, who use a kind of "cache"... the first user pregenerate the php and save everithing in a cache directory... I think this could help if you have a lot of visits and you don't want to hit the database for every user... think about this: If you use database in you home page, every visitor hit your database... in that case I suggest two things:
  • Move all the database content to anoter place
  • Put cache o someting like cache
Now I can imagine at least two ways to implement this:
  • Regenerate cache automatically every XXX minutes/hours
  • Regenerate cache every XXXX hits
    • Of course, this could be dangerous because your site doesn't refresh everithing, but think about saving CPU, fast resolved pages... if you thing big, you need to handle this. Regards... Fercho.-

Story Options

Somebody think about cache? | 1 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Caching options
Authored by: Tony on Thursday, December 27 2001 @ 08:28 AM EST
I\'ve just been put onto a project called jpcache (search freshmeat). I\'m checking to see if it can be used in our themed environment. Supposedly it is very easy to integrate but you will need Zlib compiled into PHP. I\'ll let you know more when I have a chance to test things out. I\'m going to play with ApacheBench here in a second to give some sort of useful comparisons.