Need a php caching recommendation -


i need find right caching solution clients site. current site centoos, php, mysql, apache using smarty templates (i know suck built else). current models/methods use oo structure there way many queries being done of simple page functions. i'm looking try find sort of caching solution i'm noob when comes , don't know available fit current site setup.

it auction type site 10 auctions displayed on 1 page @ 1 time -- time , current bid on each auction being updated via ajax call returning json every 1 second (it's penny auction site beezid.com updates every second necessary). can see, if site gets sort of traffic number of simultaneous requests huge. data changes every second because json data returned has updated time left in auction, , possibly updated bid amounts , bid users each auction.

what want ability cache pages given amount of time or based on other changed variable. example, memory caching page displays 10 auctions , updating cache copy when 1 of auctions ends. or script above returns json string data every second. if able cache first request page in memory, serve following requests memory , re-cache again after 1 second, potentially reduce serverload lot. don't know if possible or if overhead of doing outweights request load savings.

i looked xcache couldn't find way set particular cache time on specific page or based on other variables?!? maybe i'm missed something, have recommendation on caching scheme work these requirements?

mucho input might have...

cacheing can done using many methods. memcached springs mind being suited task. if site ultra busy may run out of ram.

when caching use simple file cache, while involve @ least 1 stat call determine freshness of cached content still fast , marginally better calling sql server.

if must call sql server may pay use memory(heap) table store of precomputed data. technique no more efficient memcached, less saves installing memcached.

dc


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -