Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
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
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
Pages: 1