Move entity cache from web.request.ConnectionCubicWebRequestBase to repoapi.ClientConnection
ResultSet._build_entity relies on an entity cache to avoid going round in
circles (stack overflow due to infinite recursion) e.g. in a postcreate script.
Clear the cache at commit/rollback time to avoid unexpected side
effects; and explicitly clear the cache in a few tests where we mix ORM
and RQL using the same connection.
#! /bin/sh -e
case "$1" in
purge)
rm -rf /etc/cubicweb.d/
rm -rf /var/log/cubicweb/
rm -rf /var/lib/cubicweb/
;;
esac
#DEBHELPER#
exit 0