Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 11:56 am EDT

Somebody think about cache?

  • Wednesday, December 26 2001 @ 11:18 am EST
  • Contributed by: Anonymous
  • Views: 4,718
Geeklog I 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.-