LPS-52026

Hi Shuyang,

I looked into doing this as a interceptor that was only active during import - the problem with that was with https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/dao/orm/hibernate/SessionFactoryImpl.java#L79

There doesn't seem to be a way to add a new interceptor when we get the current session.  We could implement this as an interceptor but it would always need to be active and we wouldn't have the persistence context as readily available.

I was able to remove the thread local and just use staging's built in one.  However, I'm not sure if there's any other long running processes that we might need to manage this cache for.