Extend cache clear script by support for query and translation cache.