cakephp 2.5 compability. memcache engine has been replaced by memcached engine. and the afterlayout signature didn't match. need to alter the method itself though