Filepath: phork/php/cache/CacheAdaptor.class.php

The CacheAdaptor class is an abstract class that all caching classes should extend. It implements the Cache interface found at phork/php/cache/interfaces/Cache.interface.php.

In addition to being a straight forward adaptor, each adaptor class has the ability to cache to different tiers. The default tiers are base and presentation.

This comes in handy when a site's templates have changed and need to be flushed without flushing any underlying data. In that case the presentation tier can be flushed and the basr tier can be left alone.

All the cache tiers are defined in the cache configuration.