[3.8] Fix #1647 : Cleanup SE cache after API query