Jump to content


Photo

WEB Page Update Delay


  • This topic is locked This topic is locked
9 replies to this topic

#1 craigis

craigis

    Rank II Member

  • Members
  • PipPip
  • 50 posts
  • Gender:Male
  • Location:New Zealand

Posted 19 March 2011 - 11:38 AM

Please see http://wiki.helionet...ki/Page_caching

I was just wondering what would be the average time for a page to update after content has been updated? Should it be a instant update or are there delays ie are the pages cached in the servers memory to speed load times if a page is accessed multiple times.

Thanks In advance smile.gif

#2 jje

jje

    Rank X Member

  • Moderators
  • 2,769 posts
  • Gender:Male
  • Location:UK

Posted 19 March 2011 - 11:59 AM

It depends on the method of transfer, as well as the user's browser settings.

The cPanel File Manager usually has a slight delay of 5 minutes - during those 5 minutes it usually shows 500 Internal Server Errors to anyone accessing the page. FTP or Web Disk is the best way to upload and update pages quickly.

Also, the user's browser may cache some pages for quick loading. You can prevent this by adding this to your HTML code, between <head> and </head>:

HTML
<meta http-equiv="Pragma" content="no-cache">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

Support Administrator | @HelioHost on Twitter.
Posted Image

#3 Guest_Geoff_*

Guest_Geoff_*
  • Guests

Posted 19 March 2011 - 02:17 PM

Also, if you are using a PHP script, you can set HTTP Headers to control caching the content.

#4 Wizard

Wizard

    Rank X Member

  • Moderators
  • 2,922 posts
  • Gender:Male
  • Interests:Sleeping.

Posted 19 March 2011 - 09:08 PM

CMS and forum software will sometimes cache their pages and you'll have to flush their caches manually from their control panels.

Pacman emerges victorious!


#5 rvt

rvt

    Rank III Member

  • Members
  • PipPipPip
  • 113 posts

Posted 19 March 2011 - 10:56 PM

Sometimes, ISP's can try and cache things to save bandwidth. This is generally bad and if you find this happening to you I suggest you look for a new ISP. This method of caching can usually be detected when you know it is not your browser and the content appears updated when viewing the site through a proxy.
Join The Host Helpers for all your coding, designing, and tech help needs.

#6 thejoggingmat

thejoggingmat

    Rank I Member

  • Members
  • Pip
  • 24 posts

Posted 20 March 2011 - 02:34 AM

Sometimes, browsers cache your web pages too. For instance, I didn't realise my subdomain was activated at heliohost until 2 wks later, after I flushed my browser cache... I'm using chrome btw.

#7 craigis

craigis

    Rank II Member

  • Members
  • PipPip
  • 50 posts
  • Gender:Male
  • Location:New Zealand

Posted 20 March 2011 - 11:31 PM

Yea I've figured out now that my broadband router also caches the pages as well so I have to reset that if the pages don't load correctly after a update and that usually fixes it as well as flushing my browsers cache.

#8 jje

jje

    Rank X Member

  • Moderators
  • 2,769 posts
  • Gender:Male
  • Location:UK

Posted 21 March 2011 - 07:19 AM

Glad your problem got solved. smile.gif

p.s. I recommend you add the code I listed above to your pages to avoid this issue, between <head> and </head>
Support Administrator | @HelioHost on Twitter.
Posted Image

#9 craigis

craigis

    Rank II Member

  • Members
  • PipPip
  • 50 posts
  • Gender:Male
  • Location:New Zealand

Posted 27 March 2011 - 07:47 AM

Also another way that has helped rather than clearing the cache for the entire web browser you can just push Ctrl + F5 and it forces a refresh of that page which has helped with the problems. Just thought I would add that as it may help some of the members. I have also added the code above to the site for now but i will probably remove it once everything is running soothly.

#10 Wizard

Wizard

    Rank X Member

  • Moderators
  • 2,922 posts
  • Gender:Male
  • Interests:Sleeping.

Posted 27 March 2011 - 08:17 AM

Pinning this because it's helpful.

Pacman emerges victorious!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users