|
|
Joined: Mar 2001
Posts: 80
Member
|
Member
Joined: Mar 2001
Posts: 80 |
Hi,
If I modify public_topic_page.pl so that the displayed output differs if the user is a mod/admin or normal/unregistered users does that break the chache?
And if so am i right in thinking that the cache is considerd broken if the output displayed to the user can change in any way based upon who the user is.
And one last question, If the cache is broken by something in public_topic_page.pl in one formum, how does this affect another forum using a template with a standard public_topic_page.pl. I mean does the cache still function oK?
Sorry for all the questions, I am just trying to get a better understanding of how the cache works.
Thanks for your time
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
Depends how you do it. If it's done server side, yes it breaks the cache. If it's done via JS on the client side, nope.
And for your last question, I don't know, but I don't think so.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
What Dave said for the first question... for the second, if you're using a template that doesn't change output on the server side based on the client side, then it won't break the cache In other words, what Dave said for both
|
|
|
|
Joined: Mar 2001
Posts: 80
Member
|
Member
Joined: Mar 2001
Posts: 80 |
Is there any chance you could clear that up a bit, it dosnt really answer my question.
And if it does, then it dosn't answer it at my level, hence I asked the question.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
If you use a javascript to change/add content, then no, it wouldn't break the cache (like how we do the times here on the forum). If you change the content using edited html code done servers-side, then yes it will
|
|
|
|
Joined: Mar 2001
Posts: 80
Member
|
Member
Joined: Mar 2001
Posts: 80 |
Sorry allen, i understood that from daves first answer and from what i stated in my opening post.
Its the last question that i need answering, If i break the cache in one forum by editing the templates for that forum, how does it effect the other forums that are using standard unedited templates. Is the cache broken completely or will it still function for the untouched forums.
Paul
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
it still functions
|
|
|
|
Joined: Mar 2001
Posts: 80
Member
|
Member
Joined: Mar 2001
Posts: 80 |
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|