Hi Craig, > Just researching Caching pages, this looks basic. Is this good > practice? Would be interested in feedback on this subject.
Yeah - it's pretty much the only practice if you want any hope of scaling. Caches can be implemented effectively with Pear::Cache_Lite. You can (and probably want to) cache at multiple levels: - entire page caching if you have no user-customised content on the page - partial page caching for "modules" within pages - caching of complex objects or sets of objects - caching of SQL result sets For efficiency and speed you can override Cache_Lite to store cached data in memcache instead of on disk, or if you only have a single server just point it to a shared memory partition. MySQL also has a query cache which helps if you're not already using it. Kind regards, James McGlinn __________________________________ CTO Eventfinder Limited Suite 106, Heards Building 2 Ruskin Street, Parnell, Auckland 1052 Phone: +649 365 2342 Mobile: +6421 633 234 [EMAIL PROTECTED] | www.eventfinder.co.nz --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [EMAIL PROTECTED] -~----------~----~----~----~------~----~------~--~---
