Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-11-21 14:30:47
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Side effect of test (or debug) status settings
On this site, Blandy Mathieu I want to allow the user to reload the “peinture” page/section, when he click on the “Ma peinture” menu.
I use here smd_banner to get 1 of 50 images with a text and smd_gallery to pick 10 of 200 images.
Works fine if site status are on testing or debug. In normal use, each time I click on the menu item, I get the same set of text/images. I must here do a total refresh (ctrl-f5) to get new images …
Could you explain me ??? Particular header is sent if in testing or debug mode ? How get the same refresh, in normal status ?
Offline
Re: Side effect of test (or debug) status settings
jpdupont wrote:
In normal use, each time I click on the menu item, I get the same set of text/images.
I suspect it’s more a ‘side-effect’ of Live mode. Since the database execution time is output in both Testing and Debugging modes, the page is deemed to be different and is fetched from the DB fresh. In Live mode, the browser may well think the page is ‘unchanged’ and before the database has a chance to instruct it otherwise (i.e. to find out there’s some random content on the page) the server sends the cached copy.
Try switching the status of Send Last-Modified header in Advanced prefs and see if it makes any difference.
Last edited by Bloke (2009-11-21 15:03:48)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#3 2009-11-21 15:12:02
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: Side effect of test (or debug) status settings
Bloke a écrit:
Try switching the status of Send Last-Modified header in Advanced prefs and see if it makes any difference.
It was on “YES”. I put it on “NO”, and put the site on normal mode. It’s now ok. Thanks Stef !
Last edited by jpdupont (2009-11-21 15:12:20)
Offline