Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 06-04-2004, 12:02 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm I can not see the debug at footer..... you put debug on via config.php right?

Here is a screen of mine
Attached Images
File Type: jpg debug.jpg (16.7 KB, 0 views)
Reply With Quote
  #12  
Old 06-04-2004, 12:07 AM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did it in the admincp. vBulletin Options > General Settings > Add Template Name in HTML Comments

Where in config.php would it be?

These are the only options I have in my config.php:

// ****** DATABASE SERVER NAME ******
// ****** DATABASE USERNAME & PASSWORD ******
// ****** DATABASE NAME ******
// ****** TECHNICAL EMAIL ADDRESS ******
// ****** PERSISTENT CONNECTIONS ******
// ****** PATH TO ADMIN & MODERATOR CONTROL PANELS ******
// ****** USERS WITH ADMIN LOG VIEWING PERMISSIONS ******
// ****** USERS WITH ADMIN LOG PRUNING PERMISSIONS ******
// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
// ****** UNDELETABLE / UNALTERABLE USERS ******
// ****** SUPER ADMINISTRATORS ******
Reply With Quote
  #13  
Old 06-04-2004, 12:08 AM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok did a search on vB.com and saw http://www.vbulletin.com/forum/showt...ighlight=debug

Going to add to script right now...
Reply With Quote
  #14  
Old 06-04-2004, 12:10 AM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I see it. In arcade.php the uncached templates are

ARCADE (1)
arcade_header (1)
arcade_main (1)
arcade_main_alerts (1)
arcade_main_alerts_bit (1)
arcade_main_games_bit (10)
arcade_main_news (1)
arcade_main_news_bit (4)
arcade_main_welcome (1)

Will caching them improve performance, and if so, how do I go about caching them?
Reply With Quote
  #15  
Old 06-04-2004, 12:33 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may wish to redownload the hack, due to same hack and I do not have any uncashed.
Reply With Quote
  #16  
Old 06-04-2004, 12:41 AM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm. I seem to have a couple extra lines in my arcade.php - probably from an arcade hack.

This is not in the original arcade.php:

Code:
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');


// pre-cache templates used by all actions
$globaltemplates = array();
Would that cause my templates to get uncached?

I have another hack on my forumhome (random arcade game) that also isn't cached. Any idea how I would cache that?
Reply With Quote
  #17  
Old 06-04-2004, 01:02 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By
Code:
$_GET[do] == "main" ) {
Under that you should have
Code:
	$globaltemplates = array(
		'ARCADE',
		'arcade_header',
		'arcade_main',
		'arcade_main_alerts',
		'arcade_main_alerts_bit',
		'arcade_main_games_bit',
		'arcade_main_news',
		'arcade_main_news_bit',
		'arcade_main_welcome'
	);
Reply With Quote
  #18  
Old 06-04-2004, 01:58 AM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have that:

Code:
// ######################### MAIN ARCADE PAGE ############################
if ($_GET['do'] == "main") {
	// pre-cache templates used by all actions
	$globaltemplates = array(
		'ARCADE',
		'arcade_header',
		'arcade_main',
		'arcade_main_alerts',
		'arcade_main_alerts_bit',
		'arcade_main_games_bit',
		'arcade_main_news',
		'arcade_main_news_bit',
		'arcade_main_welcome'
	);
	require_once('./global.php');
	require_once('./includes/functions_user.php');
	require_once('./includes/functions_arcade.php');
	
	if ($arcadegeneral['challengescores'] == 1) {
		$sessionclause = "sessiontype IN (1,2)";
	} else {
		$sessionclause = "sessiontype=1";
	}
	
	$navbits = array();
	$navbits[""] = "Arcade";
Reply With Quote
  #19  
Old 06-06-2004, 01:07 AM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You guys have been very helpful thus far -- can you help me a little bit more? (bump)
Reply With Quote
  #20  
Old 06-12-2004, 03:55 PM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump. How can I cache templates?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:24 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.04464 seconds
  • Memory Usage 2,272KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete