fix delete cache assertion for travis