vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Board Optimization - Plugin Based Template Cache (https://vborg.vbsupport.ru/showthread.php?t=121876)

Viper007Bond 12-18-2006 09:52 AM

Runs awesome here. :)

dadimes 12-19-2006 03:04 AM

Quote:

Originally Posted by orban (Post 1140872)
What exactly was your problem? When going to what page it was blank?

when i type in just the domain name eg www.myforum.com it directed to a blank page.

when i typed in www.myforum.com/index.php it displayed the forum

i simply deleted the blank index.html page, and theres no issues so far, n the sites sped up a bit

orban 12-19-2006 04:51 AM

Wow, that's really weird.

Are you sure you created the folder templates/ and the temporary files are actually created in there?

amcd 12-19-2006 05:03 AM

in the webserver configuration there is a list of files which the webserver recognises as index files. if that list contains index.html before index.php, then giving the url without filename will show index.html as that is the preferred index file.

i dont think your problem has anything to do with this plugin. the only connection may be that while installing this, you inadvertently created an index.html file in the forum root directory.

orban 12-19-2006 11:24 AM

Ohhh, right. That's the explanation. :)

I didn't realize that he probably created it in the wrong folder...

Thanks!

RS_Jelle 12-19-2006 05:04 PM

Quote:

Originally Posted by h_kakashi (Post 1042768)
I get the following Error :

Warning: Unknown(template_cache.php): failed to open stream: No such file or directory in /admincp/options.php(1025) : eval()'d code on line 15

Warning: (null)(): Failed opening 'template_cache.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /admincp/options.php(1025) : eval()'d code on line 15

Fatal error: Call to undefined function: clear_template_cache() in /home/kakashi/public_html/forums/admincp/options.php(1025) : eval()'d code on line 16

When I attempt to enable it via vbuleltin options. I attempted to enter in the path to the template folder but no joy.

The forums , templates and files in the templates directory are all set to 777. So I really can't see the problem :S

I've got the same problem ... but I uploaded it to the correct folder, my forums folder. I can't give an url cause it's currently on our test site. When I uploaded the php file also to the AdminCP directory, the problem was solved (and options.php could find it, in the AdminCP directory, but the file should be normally only in the forums folder).

Edit: I could fix it easily by correcting the product file:
Change the include of the two admin plugins (admin_global and admin_options_processing) to:
PHP Code:

include_once('./template_cache.php'); 

instead of
PHP Code:

include_once('template_cache.php'); 

Note: a require_once function would be better instead of a include_once (also just to follow the vBulletin coding standards).

Edit 2: I discovered a new bug, the archive isn't working any more, you need to add a plugin there too.

Amenadiel 12-23-2006 07:33 PM

Quote:

Originally Posted by SaN-DeeP (Post 1130518)
I am using the Zoints Tags System as well for vb 3.6.4
Further investagating found if Cache Templates Seperately is set to yes this disables zoints tag system.

Have another question on our server GZIP is set to 1, do we require to enable Cache Templates Seperately ?

Thanks for the cool modification.

You were right, I disabled the "Cache Templates Seperately" option and now it works fine with Zoints Thread Tags

orban 12-23-2006 07:40 PM

If you don't use the "Cache Templates Seperately" option then the performance improvement is tiny. I strongly recommend using "Cache Templates Seperately" and a PHP opcode cache to get the best results.

I guess Zoints dynamically replaces templates at runtime, that's why it doesn't work.

da420 12-23-2006 07:51 PM

How do I know if I am using a "PHP opcode cache" ?

Thanks.

amcd 12-23-2006 07:57 PM

search for APC / xcache / eaccelerator in your phpinfo page. there should be a separate section for one of these.

also, you will see something similar to
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with XCache v1.0.2, Copyright (c) 2005-2006, by mOo

turck mmcache was also popular some years ago, but its not updated and hardly used any more. ioncube also has a opcode cache i believe.


All times are GMT. The time now is 07:44 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.01315 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete