Thanks Jehiah, I've made the necessary amendments.
Anyone have any idea on the unknown error?
On 01/03/2008, Jehiah Czebotar <[EMAIL PROTECTED]> wrote:
>
> As a side note, you don't need to get, then do a replace or a set
> depending on weather or not the value is in memcached., you can always
> just set which will blindly set the value regardless of if it was
> there before or not.
>
>
> >if ($mch->get('news:1234')
> >{
> > $mch->replace('news:1234', $result);
> >}
> >else
> >{
> >$mch->set('news:1234', $result);
> >}
>
>
> becomes
>
>
> $mch->set('news:1234',$result);
>
>
> --
>
> Jehiah
>
--
Jonathan Chong
http://jonathanchong.com/
http://arsenal-mania.com/