PHP Classes

How to do a Smart cache...

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  How to do a Smart cache...  
Subject:How to do a Smart cache...
Summary:how can php remember vars across visitors without database
Messages:22
Author:Cesar D. Rodas
Date:2007-08-20 20:06:28
Update:2008-03-07 13:29:46
 

  1. How to do a Smart cache...   Reply   Report abuse  
Picture of Cesar D. Rodas Cesar D. Rodas - 2007-08-20 20:06:29
Helloo PHP developers!

I wonder is someone has done, or how to it efficiently. I need a smart cache that can manager vars that changes frequently.

Let me explain it by examples, Imagine a site like www.digg.com, I want to cache the whole site, and at the same time just changes portions of it, like when a user vote, with out rebuild the whole cache.

This solution could offload the load of server because the database could only be used for store values, and let 'smart cache' to handle variables.

I want to focus on performance, so, If no one has do something like this before, what do you think is the better way to store variables?
- Flat file
- Shared memory
- Other??

Thanks to all.

There are 21 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.


 
For more information send a message to info at phpclasses dot org.