Welcome to Android Central! Which phone? Clearing the app cache or system cache shouldn't erase any photos. Use a file manager app to search the /DCIM/Camera directory to see if the actual photo files are still there. Or connect the phone to your computer via USB and use Windows Explorer to look in that directory for the photos. If you see them, back them up now to your computer hard drive.