Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2024-07-17 17:06:51
- ironmangary
- Member
- From: United States
- Registered: 2022-10-13
- Posts: 36
Caching Problem
As I have discussed in other topics, I have created public facing forms to add and edit articles. I finally, using etc_post and smd_query, got it working pretty well. Except for one thing. Caching. After an article is updated via the public side, the only way to see the changes is to close the browser window and launch a new browser instance. There are so many layers of caching, from Apache to PHP, I’m not sure where to even begin. I saw mention of raw_nocache, but that only works on the admin side, and, well, it was last updated 11 years ago. Does anyone have any suggestions?
Offline
Re: Caching Problem
Maybe it’s worth giving rah_nocache from GitHub (packaged installer here) a try. It just sets some page headers, and that hasn’t changed over the years.
Perhaps the same strategy helps on the public side using txp:header. Example 1 on the txp:header docs page shows a way of preventing caching of dynamic articles.
TXP Builders – finely-crafted code, design and txp
Offline
#3 2024-07-18 22:05:11
- ironmangary
- Member
- From: United States
- Registered: 2022-10-13
- Posts: 36
Re: Caching Problem
Thanks, Jakob! Fixed.
Last edited by ironmangary (2024-07-18 22:06:00)
Offline
Pages: 1