Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Signature Banner not refreshing

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
geoffw
Posts: 558
Joined: Fri 08 May 2009 3:12 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Pembrokeshire West Wales UK
Contact:

Signature Banner not refreshing

Post by geoffw »

My Signature Banner is not refreshing for me, those of others are. Any ideas?

My signature banner below is reading 16.52 yet my clock is now 17.19 - when I 1st logged on to Cumulus. Rereshing the page does nothing to the banner content.
Geoff
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Signature Banner not refreshing

Post by freddie »

I see it as 9:17 on the 21st. Looks like a cache setting needs changing on your website.
Freddie
Image
geoffw
Posts: 558
Joined: Fri 08 May 2009 3:12 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Pembrokeshire West Wales UK
Contact:

Re: Signature Banner not refreshing

Post by geoffw »

This illustrates my problem, the first mage was cut andpasted from my earlier message
Capture.JPG
Thes 2nd image wascut after I had had my tea and the come back tomy PC to click "refresh".
Capture2.JPG
So how do i stop my website caching my banner?
You do not have the required permissions to view the files attached to this post.
Geoff
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Signature Banner not refreshing

Post by freddie »

It's the viewer's browser that caches the banner - but the amount of time it is cached is set by your web server.

If it is an Apache web server then I think you can put a .htaccess file in your web site root that will control the caching.
Freddie
Image
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: Signature Banner not refreshing

Post by ConligWX »

you can also blacklist files you dont want cached by opcache in php.ini. (if your using opcache)

Code: Select all

; The location of the OPcache blacklist file (wildcards allowed).
; Each OPcache blacklist file is a text file that holds the names of files
; that should not be accelerated. The file format is to add each filename
; to a new line. The filename may be a full path or just a file prefix
; (i.e., /var/www/x  blacklists all the files and directories in /var/www
; that start with 'x'). Line starting with a ; are ignored (comments).
opcache.blacklist_filename=/share/wherever/php_blacklist.txt
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Signature Banner not refreshing

Post by freddie »

Very true what @conligwx says about PHP-controlled caching, which needs to be considered as well.

For Apache, you should put the following code in a file called .htaccess and put it in your web site root. Make sure the file is saved as the precise name .htaccess when you upload it.

Code: Select all

# DISABLE CACHING
<IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires 0
</IfModule>

<FilesMatch "\.(php)$">
    <IfModule mod_expires.c>
        ExpiresActive Off
    </IfModule>
    <IfModule mod_headers.c>
        FileETag None
        Header unset ETag
        Header unset Pragma
        Header unset Cache-Control
        Header unset Last-Modified
        Header set Pragma "no-cache"
        Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
        Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
    </IfModule>
</FilesMatch>
Hopefully your hosting company allows the use of .htaccess files.
Freddie
Image
geoffw
Posts: 558
Joined: Fri 08 May 2009 3:12 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Pembrokeshire West Wales UK
Contact:

Re: Signature Banner not refreshing

Post by geoffw »

Thanks all. I did as Freddie suggested and put the .htaccess file in my root directory. Restarted and it seems to have done the job. I recently changed from http to https.

Banners on opening
Capture.JPG
Banners after a few minutes and then a refresh
Capture2.JPG
You do not have the required permissions to view the files attached to this post.
Geoff
Image
Post Reply