To enable Second Level Caching for Hibernate in WildFly, add this property to your persistence.xml file:
<property name="hibernate.cache.use_second_level_cache" value="true"/>
You may also enable Query Caching with this property:
<property name="hibernate.cache...