fix sqlite error when configuring the cache database