rewrote clear cache to use the raw client and created some unit tests for the path creation