Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-28 05:40:44

jadehouse
Member
Registered: 2007-06-26
Posts: 75

Caching issue

I’m getting contents with PHP from another page. The PHP is surrounded in <txp:php> tags and it works, but it seems TXP is caching it and not getting it for each page refresh (it’s actually calling the newest 5 threads from PunBB). What can I do about this?

Last edited by jadehouse (2007-12-28 05:41:16)

Offline

#2 2007-12-28 06:25:48

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Caching issue

Are you actually parsing the posts or the thread titles? If it is the second there’s a plugin which might sort out your problem.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-12-28 07:18:35

jadehouse
Member
Registered: 2007-06-26
Posts: 75

Re: Caching issue

What I’m doing is exactly what that plugin does:

<txp:php> echo file_get_contents('http://www.domain.com/forums/extern.php?action=new&show=5&fid=3,4,5'); </txp:php>

But it gets cached. It works perfectly in the forum templates.

Please advise…

Last edited by jadehouse (2007-12-28 07:18:42)

Offline

#4 2007-12-28 08:28:18

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Caching issue

do you have Send “Last-Modified” header? (admin->advanced) set to yes? if so, try setting it to ‘no’ possibly?

Offline

#5 2007-12-28 13:51:18

jadehouse
Member
Registered: 2007-06-26
Posts: 75

Re: Caching issue

That did the trick. Thanks man. Maybe I should try to find a way now that it’s working to have everything else cached, but not this though. I’m guessing that option does save a lot of bandwidth in the long-run.

Thanks again.

Offline

Board footer

Powered by FluxBB