vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   xcache question(advanced) (https://vborg.vbsupport.ru/showthread.php?t=194192)

sturdevk 10-21-2008 05:28 PM

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

Eikinskjaldi 10-21-2008 10:33 PM

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.

Amenadiel 10-26-2008 05:07 AM

you can still reboot the webserver using a cronjob every 20 minutes.

Eikinskjaldi 10-26-2008 09:42 PM

Quote:

Originally Posted by Amenadiel (Post 1652898)
you can still reboot the webserver using a cronjob every 20 minutes.

That wont help. The forumcache exists in the database. a server reboot will just load the old cached entries back into memory.

sturdevk 11-06-2008 04:19 PM

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!


All times are GMT. The time now is 03:26 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00992 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete