all my emails are not connecting to the server but few days ago it was working and the server is some kind of caching
Not really understand end of your question. Run cyberpanel update script reboot server too. If those wont help check your logs if there is some errors and post them here.
alright let me try that. the second one is about when i change something in any of the scripts or files in my server its not changing on the front end as if the server is cacheing