<?php
/**
 * Cache Helper
 * 
 * Manages the server-side cache
 *
 * @author Valentin Bora <contact@valentinbora.com>
 * @version 1.0
 * @package Joobsbox_Helpers
 * @copyright  Copyright (c) 2009 Joobsbox. (http://www.joobsbox.com)
 * @license	   http://www.joobsbox.com/joobsbox-php-license
 */
 
/**
 * Manages the server-side cache
 * @package Joobsbox_Helpers
 * @category Joobsbox
 * @copyright  Copyright (c) 2009 Joobsbox. (http://www.joobsbox.com)
 * @license	   http://www.joobsbox.com/joobsbox-php-license
 */
class Joobsbox_Helpers_Cache
{
	
	public static function clearAllCache() {
		foreach(new DirectoryIterator("cache") as $file) {
			if(!$file->isDot()) {
				@unlink("cache/" . $file->getFilename());
			}
		}
	}
}
