Hi,
Slow charging on a Samsung phone, coupled with an inability to clear the cache, suggests a deeper issue possibly related to the charging port, software, or hardware. It's recommended to first try cleaning the charging port with a soft brush or compressed air, and testing with a different charger and cable. If the problem persists, clearing the cache partition through the recovery menu (if accessible) and checking for software updates can help. If all else fails, a factory reset may be necessary, but ensure you back up your data beforehand.