PDA

View Full Version : SSI problem


apt42
2-15-07, 01:37 AM
Thanks to folks in another thread, I got some advice on how to set up SSI includes for my site, having one file that was brought in from the top level to all folders, being told the following:

<!-- #include virtual ="/test.shtml" -->

If the included file is in the /folder directory as well, then you would use the following:

<!-- #include virtual ="/folder/test.shtml" -->



Going by the above, I set up my left hand info/navigation section as an SSI and referenced it using the first option, the file being located directly under htdocs, the calling files under folders (news, biography etc)

Can anyone tell me why, if I've updated the file being called, that not all pages are pulling the recent version, but still showing the data from an old version? How do I fix, please?

For example, my news page shows the most recent version (the amount in 'funds raised' section is showing the latest $$):

http://www.michaelshanks-online.com/news/index.shtml

If you go to the biography page, it is pulling up the old file, even though the file is located in the same place.

Help please? :confused:

Mon

HalfaBee
2-15-07, 03:24 AM
Maybe it is just a caching issue with your browser.
Try ctrl+F5 to refresh it.

apt42
2-15-07, 06:39 AM
Maybe it is just a caching issue with your browser.
Try ctrl+F5 to refresh it.


Thanks for the suggestion, but, alas, that hasn't worked. :(


mon

apt42
2-15-07, 06:53 AM
Okay, it's official, I'm an idiot. :D

I just realised that the other pages are calling a similar, but actually different, file which wasn't updated. Ah, the hazards of doing updates at 3am!

Thank you for the help! I'll go slink off into a corner now. :)


Mon

(jj)
2-15-07, 09:18 AM
Just for the record, the files that you call into the page do not need the .shtml extension. Only the file that is doing the include call need the use of that extension. Your files that you are including can simply be named with a .txt extension.

apt42
2-17-07, 09:50 PM
Just for the record, the files that you call into the page do not need the .shtml extension. Only the file that is doing the include call need the use of that extension. Your files that you are including can simply be named with a .txt extension.

Ah, now that I didn't know! Thank you! :-)


Mon