Saving new code for html

Status
Not open for further replies.

techni26

New Member
Messages
11
Reaction score
0
Points
1
Sometimes actually a lot recently I been saving my work to the file manager and its taking forever to actually start showing up on my website. I can he refreshing for ever but it won't show what I saved recently in the file manager. Why does this happen and how can I fix it?
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
Why does this happen and how can I fix it?
-
x10hosting's free-hosting servers run a combination of the Apache web server and the Varnish cache server
the cache server maybe why there is a delay before you 'see' the file(s) - after you upload it - or see a new 'post'
the caching time (delay) S/B about 5 seconds for dynamic content and about 5 minutes for static content - there are posts in this forum about it being longer

to override [ Varnish cache ] try adding the following line to your [ .htaccess ] file in folder [ public_html ]
Code:
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"

AND/OR

#1.> Sign into your cPanel account at --> [ https://www.x10hosting.com/sso/login ] and open cPanel

#2.> if you are NOT in the [ cPanel x3 ] theme - click on the "Switch Theme" button at the top on the screen - you can choose between [ x10Hosting Basic ] and [ cPanel-x3 ] themes

#3.> on cPanel-x3 (not x10hosting Basic) homepage - in the [ Software and Services ] block - click on [ Cachewall ] - then set it to [ off ] for each domain
###

the current 'cache' (if any) will need to time-out before this setting becomes effective

You can also check at [ http://isvarnishworking.com ] to see if the .htaccess modification is working. It should say "Yes! Sort of." and then you should see the Cache-Control header underneath

NOTE: you might have a 'cache' in your browser and/or ISP

see --> [ https://x10hosting.com/support/general/varnish-cache ]
-
###
 

techni26

New Member
Messages
11
Reaction score
0
Points
1
By default how long does Varnish cache store cache(the age) and also what are the pros and cons to keep/disable Varnish cache.
 
Status
Not open for further replies.
Top