The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I know that there is an option to globally enable no-cache headers (at PHP level, not from the META tags) in the admin CP, but this option enables the no-cache headers for the entire forum. Is it possible to programatically enable the no-cache headers for a custom page ? Regards, Razvan |
#2
|
|||
|
|||
![]()
This is the headers for no-cache but I wouldn't run them in a plugin or anything because vBulletin may already send them.
PHP Code:
|
#3
|
|||
|
|||
![]() Quote:
I am thinking that the option of sending or not the "no-cache" headers should be just an option in an array - like in this array: $vbulletin->options['bburl'] instead of "bburl" it should be something like "nocache". If I set it to true: $vbulletin->options['nocache'] = true; then the VB system should send the no-cache headers. What do you think ? Is the system working like this ? I am going to check the "options" array tomorrow. The advantage of using the above system is that the headers will NOT be sent twice if they are enabled globally for the whole board. Regards, Razvan |
#4
|
|||
|
|||
![]()
The headers are sent in a function called exec_headers(). This function is called in the global.php.
Line 91 in 3.7 R3 Line 85 in 3.6.8 PL2 I couldn't find any hook that is called after the options are pulled out or before exec_headers is called. So you can either put PHP Code:
|
#5
|
|||
|
|||
![]() Quote:
PHP Code:
Originally, I was thinking to visualize the headers that I got from the server (there is a hack for FF that allows you to do that), but I don't think that I need to install that hack any more. Since this is working in all major browsers, that means that the correct headers are sent ! It is wrong what I did above !!! Before calling global.php, the array "$vbulletin->options" is not defined ! I don't know why it worked on a given page. Anyway, what I decided to do in the end is this: PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|