The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
xcache question(advanced)
Hi, All,
I'm a newie for PHP programming and get thrown into vBulletin customization project two weeks ago. I have a question about vBulletin integrated with xCache. I know that if we use xcache for datastore, the data in the datastore will be cached in the memory. my use case is that we have to add the forums to vBulletin's DB through external system. so after doing that, a synchronization between DB and cache is a must. otherwise, database has new forums information,but cached data doesn't. my question is that will xcache go to automatically load the new forums information after a certain period by implementing cache expiry mechanism? such as after 10 minutes, vBulletin will expire the cache and load the data from DB to cache again? Thanks in advance. Alex Hu |
#2
|
||||
|
||||
No it wont. However you can rebuild the forumcache within code, so you could set up a cron job to do it.
Probably be a bit server intensive though. |
#3
|
||||
|
||||
you can still reboot the webserver using a cronjob every 20 minutes.
|
#4
|
||||
|
||||
That wont help. The forumcache exists in the database. a server reboot will just load the old cached entries back into memory.
|
#5
|
|||
|
|||
I just learned that xCache 1.2.2 version has a setting which will set the expiry time. the setting is xcache.var_ttl, if I set to 10 minutes, the cached data will expire after 10 minutes and data in datastore will get loaded from DB. thanks for everyone to reply!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|