Fix cache was not working with WMS driver.