added apc and memcache Smarty support