The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin and datastore
Through a custom script (which runs outside of vBulletin), I am adding IP addresses to the vBulletin ban list. First I add it to the setting table, like so:
PHP Code:
Because vBulletin also saves a cached copy of the options in the datastore table, I then refresh the options in the datastore like so: PHP Code:
This is driving me nuts and majorly pissing me off by now. Can anyone see what's wrong? I mean, the correct information is in the database, in both places ('setting' and 'datastore') yet vBulletin (3.7.3) doesn't seem to care. Is there maybe another place this information is cached? (And no, I cannot use the build_options() function from vB, since I'm running a standalone script.) |
#2
|
||||
|
||||
Are you using datastore_cache? It needs to get added into there also (I think - I'm a total n00b when it comes to datastore_cache).
|
#3
|
|||
|
|||
We are not, but your post did put me on the right track! It turns out we are using APC now (we upgraded to PHP5 a few days ago) and that was the culprit. I put the following code at the end of my "datastore-update" code:
PHP Code:
|
#4
|
|||
|
|||
thanks.. very helpful
|
#5
|
||||
|
||||
I'm glad I was able to trigger that lightbulb to go off in your head.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|