Author Topic: WeatherCat tip: clean out your WeatherCat Custom Web folder.  (Read 1528 times)

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6494
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
WeatherCat tip: clean out your WeatherCat Custom Web folder.
« on: October 10, 2013, 11:15:40 PM »
Dear WeatherCat custom web users,

As explained elsewhere on this forum, I was finding that WeatherCat was generating test pages for templates I had thought were long discarded.  Particularly baffling was that these templates were last used on WeatherCat's predecessor: LWC.

Well, a little research and I discovered my silly mistake.  I keep all my web templates in a folder presently called:

~/WeatherCat Web Sites/WC Custom Web Templates

I have WeatherCat do all the tag substitution and place the resulting HTML files in a folder called:

~/WeatherCat Web Sites/WC Custom Web

When I removed a template, I would remove it from the first folder.  The trouble is that the resulting HTML file from the last WeatherCat run will still be sitting in the second folder.  When WeatherCat uploads, it is smart enough not to upload files that haven't changed, so all those old files are not costing you any additional upload effort.  However, they do clutter up your hard drive and will make troubleshooting your website that much more difficult.

So, do yourself a favor.  When you delete a template from your templates folder, remember to also delete the resulting HTML file from your custom web folder.  Anybody who has been using WeatherCat for a while might want to take a little time to do some house-keeping on both your hard drive and your web site directories.  You might be quite surprised at how much junk needs to be trashed!

Cheers, Edouard  [cheers1]