Community Add-Ons

Add file to this package
Top » Other

osC Advanced Cache Class
for osCommerce Online Merchant v2.2

This contribution enables the osCommerce developer or advanced webmaster the ability to cache just about anything. Whether you need to cache a large array, template, or even [executable] PHP code this class can handle it.

Originally designed and coded to be a scalable alternative to filesystem cache for my Ultimate SEO URLs contribution it can be used for just about any cache need. This class can be the base for a database driven template system or global data cache on a per language basis. It is extremely flexible, robust, and fast.

As a forward, if you have no idea whether your store would benefit from cached data then this contribution is NOT for you. It is geared toward contribution developers and coders.

This is the base class that I'll be using for my contributions from now on. Also, it will serve as the core of my template engine :-)

Legend:  Download   Report
Expand All / Collapse All
Fix race-condition pbor1234 27 Jun 2009  

Sometimes i got query errors due to race-conditions; When two (or more) clients call save_cache, they second will fail since the key allready exists.

This problem was attempted to solve by first doing a query if the key exists or not, then decide to either insert or update. This is offcourse not threadsafe...

I tried to fix it with this update by using 'on duplicate key update' so both tasks (query + insert or update) are done by mysql in one go.

based on files instead of sql emelaz 25 Jan 2006  
osC Advanced Cache Class v1.1a Chris LaRocque 1 Feb 2005  
osC Advanced Cache Class v1.1 Chemo 31 Jan 2005  
osC Advanced Cache Class Chemo 29 Jan 2005