You won’t lose any of the pictures on your smartphone by clearing the cache. Cached data includes temporary files that get deleted when you clear the cache.