I am building a Telegram chat-bot similar to an online store in PHP. It displays product information using MySQL data and it gets products images from a given path in the hosting.
I have an admin panel that displays the list of products in online store. And I can edit existing products. The MySQL data is updated without problems, but I am having an issue with images.
After uploading an image, the old one is replaced by the new one in the hosting. The path of the image is
https://example.com/10.jpg. If I visit this URL in a browser, I get the new image. However, the admin panel and Telegram bot are displaying the old one, even though it doesn’t exist in the given directory.