Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 Today 10:19:03

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,492
Website GitHub

Re: "Clear your cache" message on `release-demo`

etc wrote #342781:

Admittedly, when a client visits the 4.9.1 demo for the first time, it loads a cached 4.8 textpattern.js version, whence the mismatch with db version. But it should be ok after a hard-refresh.

This. I can’t fathom why it would persist unless the server cache is very very very opinionated.

And it can’t be client OS dependent, surely?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Online

#17 Today 11:02:12

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,492
Website GitHub

Re: "Clear your cache" message on `release-demo`

As further supporting information, I’ve just updated two more live sites to the 4.9.1 release version and have no such admin messages. Just a regular green announce message that the site has been updated to 4.9.1 when I log back in for the first time.

So perhaps this is peculiar to the demo server? Maybe the fact it’s rebuilt frequently is tripping up some server-level (or Cloudflare?) cache but not for all users or regions? Very odd indeed.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Online

#18 Today 16:12:40

giz
Plugin Author
From: New Zealand
Registered: 2004-07-26
Posts: 440
Website GitHub Twitter

Re: "Clear your cache" message on `release-demo`

Bloke wrote #342782:

This. I can’t fathom why it would persist unless the server cache is very very very opinionated.

And it can’t be client OS dependent, surely?

This looks likely. I’m running that paradigm of Enshittification (Tahoe), and develop in Safari. Bugs and glitchy behaviour across OS26… Every 3 or 4 days Safari beachballs for 20 or 30 seconds when opening a new url, with rebooting the only fix. ChatGTP suspects its a Safari cache thing…

Offline

#19 Today 18:42:40

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,771
GitHub

Re: "Clear your cache" message on `release-demo`

giz wrote #342789:

I’m running that paradigm of Enshittification (Tahoe) […].

I felt this hard, giz. I foolishly went down the Tahoe + iOS 26 route and I know exactly what you mean. It’s rare for me to have any regrets, but that cavalier upgrade evening last year…yeah, lessons learned.

Offline

#20 Today 18:51:43

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,771
GitHub

Re: "Clear your cache" message on `release-demo`

etc wrote #342781:

The only instance where this warning appears in the code is:

if (!textpattern.version || !'".txp_version."'.match(textpattern.version)) {...

Admittedly, when a client visits the 4.9.1 demo for the first time, it loads a cached 4.8 textpattern.js version, whence the mismatch with db version.

Thanks for the pointer, etc. I have no idea where this is coming from. The build script grabs the .tar.xz archive, decompresses it, and uses the resulting files to arm the installer…and the result definitely uses the 4.9.1. There’s nothing screwy in the Nginx headers for JS caching. There’s nothing I can see in Cloudflare to cache the JS, either. I’ll keep looking.

Offline

#21 Today 19:06:38

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,771
GitHub

Re: "Clear your cache" message on `release-demo`

I have explicitly set a Cloudflare rule to bypass all caching. Let’s see if that helps.

Offline

Board footer

Powered by FluxBB