Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
r162?: Forms not updating until a browser refresh
Been updating the SVN stable branch on a daily basis on a site for a while now.
I have a footer form that I change every time there is an update: Textpattern 4.0.3 (r1629)
When I clicked view site in admin, the form would always show what I had just changed it to. Tonight after the latest round of updates, don’t remember at what point this happened, but now I have to refresh the browser for the footer to show the new revision number.
PS. I’m using Firefox 1.5.0.6 – don’t know if it’s the new browser version?
Last edited by hcgtv (2006-08-06 05:58:38)
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#2 2006-08-06 06:03:32
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
#3 2006-08-06 06:22:07
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: r162?: Forms not updating until a browser refresh
Try r1630.
Alex
Offline
Re: r162?: Forms not updating until a browser refresh
r1630 acts the same, I changed the footer to read r1630, click view site and it says r1629.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#5 2006-08-06 06:43:41
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: r162?: Forms not updating until a browser refresh
You’re changing the footer by manually editing a form in presentation > forms, right?
Alex
Offline
Re: r162?: Forms not updating until a browser refresh
Yes, I created a footer form and call it from the default page:
<code>
<!— footer —>
<div id=“foot”>
<txp:output_form form=“footer” />
</div>
</code>
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#7 2006-08-06 07:03:39
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: r162?: Forms not updating until a browser refresh
Try right-clicking on the offending page, and check the Modified date (Page Info). You should see it change if you reload the page after editing a form.
If it doesn’t change, something’s wrong.
(By ‘reload the page’, I mean a ‘regular’ refresh/reload, not a ‘force’ shift-refresh/reload. A forced reload should always update it, right?)
Last edited by zem (2006-08-06 07:10:04)
Alex
Offline
Re: r162?: Forms not updating until a browser refresh
Modified date: Saturday, July 29, 2006 2:13:16 PM
What’s funny about this is that the footer says r1629, so the page should have a modified date of at least when this thread started.
Click the header title, which should reload the page, same date.
F5 refresh page: Sunday, August 06, 2006 2:38:20 AM
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#9 2006-08-06 07:28:31
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: r162?: Forms not updating until a browser refresh
Two interesting discoveries:
1. Mozilla doesn’t contact the site at all when you click on the link. I don’t know why.
2. Mozilla lies about response headers in Page Info > Headers (it always shows a full 200 response, even if it was really a 304).
Alex
Offline
Re: r162?: Forms not updating until a browser refresh
I get the same r1629 footer when I go into a section that links from the side menu.
Modified date: Saturday, July 29, 2006 2:13:16 PM
Yet the front page has the correct footer, I guess it’s a Mozilla issue?
IE 6 seems to be showing the correct footers, but I hardly use it, so the pages may not be in cache.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#11 2006-08-06 07:58:43
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: r162?: Forms not updating until a browser refresh
I can duplicate the old behaviour by adding this to handle_lastmod() in txplib_misc.php:
header('Cache-Control: no-cache');
..just after the header("Last-Modified: $last"); line.
That forces Moz to check the server every time it shows the page. (It still caches, but it won’t use a cached copy without “permission”).
But, I’m not sure that’s really necessary. The new behaviour is slightly different, but that doesn’t mean it’s worse.
Last edited by zem (2006-08-06 08:00:11)
Alex
Offline
Re: r162?: Forms not updating until a browser refresh
Ok, updated to r1633, still can’t get the footer to update.
There is an oddity though and I can’t explain it:
a) I use the default template, just added a blog section.
b) The article section is on the front page and has only one article.
c) The about section has only one article also.
d) The blog section has multiple articles.
e) The about and blog sections are linked to from the side menu.
f) I update the footer in admin and the only section that shows the updated footer is the about section.
If there is a problem, then I would imagine the whole site would act the same, very odd.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline