fixed apc caching of relations