aspose file tools*
The moose likes JForum and the fly likes Caching problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Caching problem" Watch "Caching problem" New topic
Author

Caching problem

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hello

I'm facing strange behavior, pages are caching in strange way, when user logs in he can see the page of the last user on the forum until he use Ctrl+F5 to see the right page

1) what may cause that
2) How can I disable caching completely?

Thank you
[originally posted on jforum.net by Silver33]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
This does not seem like a jForum application issue, since jForum only caches database info and not any display info. So I would look for a problem with your application environment (e.g. Application Server, WebServer, possible Proxy servers, "Internet Speed Enhancing" software on PC, the Browser, and the like) and not the jForum code.

FWIW, the default header.htm template include file used on all jForum pages include a couple of meta tags that stop most modern browsers and proxy servers from caching the pages. If you've got an HTTP/1.0 (i.e. ancient) proxy server, you might need to add a Cache-control no-cache meta tag.

This is assuming you're running jForum "out of the box"... if you are using some SSO solution or other setup, there might be issues here. But I doubt is since Ctrl-F5 is the command for a Browser to ignore it's local cache and do a clean refresh.




[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thank you for the explanation

Actually I'm using JForum in an iframe portlet, I'm using cookie to pass the user to the JForum...
When two different users logged in to the portal from two different machines the second saw the same (Jforum ) screen of the first (the first is admin and the second is not) tried Ctrl+F5 and his right page was loaded...

I hope if you can point to other things help me trace this issue.


Thank you in advance.

[originally posted on jforum.net by Silver33]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Two machines means two different cookies so I can't see the SSO stuff being in play. You say it's an iFrame portlet.. I'd look at the portal system setting. The portlet system may be caching the page for efficiency sake.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thank you monroe...I found out that it was happening some how by the proxy....
Thanks again
[originally posted on jforum.net by Silver33]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Im a beginner and doesn't know much about programming. I have the same issue wherein different computers on a LAN is accessing the forum, the current page login will show the last person to post a msg and if u hit f5, the correct user will load. How do we correct this?
[originally posted on jforum.net by rothnix]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
It seems to be not a JForum problem.
In my case it was happening by the web server and the access manager...
Do you use single sign on ?
Do you have caching on the web server?
Do you use a reverse proxy?
check them because the caching most probably is happening on one of them.
if you are in intranet then maybe you can access the server directly and the problem will be solved.

[originally posted on jforum.net by Silver33]
 
 
subject: Caching problem