Clear site cache from Cpanel

  • Answered

What needs to be done for website to show instant updated information?

Our site was made in php.
After uploading images and description from site back end CMS it takes about 24 to 48 hours for uploaded information to show up on site.
Any assistance on how to clear site linked cache on Cpanel.

Your help will be appreciated.
I guess what you want here is to clear browser cache at the client-end, so that changes appear immediately.
It is quite simple, add the code below at the top of the pages :)

header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Content-Type: application/xml; charset=utf-8");

Works ONLY on PHP pages.
Hello, Thank you for contacting us about clearing site caching in cPanel. There is no caching in cPanel by default. This means it is handled within the coding of your site, or the browser settings of the people viewing the site. I recommend reviewing the caching settings within the coding of your site. Typically, you can set the cache to expire after a period of time. The steps for this will differ based on how your specific site was setup and coded. If you have any further questions, feel free to post them below. Thank you, John-Paul