cache_split.php 543 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: cache_split.php 24152 2011-08-26 10:04:08Z zhangguosheng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. function build_cache_split() {
  12. global $_G;
  13. $splitcaches = array('threadtableids', 'threadtable_info', 'posttable_info', 'posttableids');
  14. foreach($splitcaches as $splitcache) {
  15. loadcache($splitcache);
  16. if(empty($_G['cache'][$splitcache])) {
  17. savecache($splitcache, '');
  18. }
  19. }
  20. }
  21. ?>