Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 142
G
member
member
G Offline
Joined: Jun 2006
Posts: 142
How do I disable cache on a custom portal box?

I added the My Stuff links as a box and want the link to user posts to work correctly.

Unfortunately, I can only get the box to be static, or cached between user's. So either the link always stays the same, or is for the wrong user most of the time.

Any ideas?


aka Olle Johansson
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Best way to do this is have some PHP code in the portal box to generate the links, so they are generated each time the box is displayed using that user's current USER_ID.

Joined: Jun 2006
Posts: 142
G
member
member
G Offline
Joined: Jun 2006
Posts: 142
The code in the box grabs the id from $myinfo, which works just fine. Except that the output is cached. So the php code isn't run everytime.


aka Olle Johansson

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Cook Book for relocating a Live Forum to a new host
by InlinersAdmin - 01/17/2025 9:41 PM
Inundated!: Who's Online - Guests
by Z65Paul - 01/15/2025 11:39 PM
online table full
by ehill - 01/13/2025 9:23 AM
Upgraded to ver8 - now can't login
by phoenix011235 - 10/24/2024 7:50 AM
Another error
by Baldeagle - 10/07/2024 8:08 PM
Who's Online Now
1 members (mavorg), 180 guests, and 112 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)