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)

psico 10-11-2006 10:55 AM

Quote:

Originally Posted by orban
Try to change the "Include template_cache.php" plugin to "include_once" instead of "include".



I have no idea about NFS. Is there even a way to create files on the webserver then? You have to adjust this addon to make it work with your setup if you are running so many special things.

Are the template files being created on that 3rd server or the webservers?

Have you compiled NFS with lock files support?

Try (still keeping the userd==1 plugin) the attached file.

It WORKS!!!!!!!!! You re DA MAN! ;)

Works perfectly, no more 0 bytes files and errors. What was the problem?

orban 10-11-2006 11:00 AM

Your NFS doesn't have file locking support.

The template_cache.php you're running now is lacking file locking so you might run into empty files again when there's a lot of requests on the server.

To make this 100% sure I'd advise you to try to compile your NFS with file locking support. (Or add some sort of protection with a if (rand()<0.2) before writing the file. Just give it a try..).

psico 10-11-2006 11:10 AM

OK, i'll talk with the hosting.

GlitterKill 10-11-2006 02:58 PM

Quote:

Originally Posted by orban
Exclude the template in question?

How might I do that? The drop down appears in the "navbar" template.

orban 10-11-2006 03:08 PM

Go to the forum options and select the option group "Plugin Based Template Cache". Then add navbar to "Exclude Templates". See if that fixes it. Can you link me the addon that causes problems?

GlitterKill 10-11-2006 03:24 PM

Excellent. Thanks for the help again. That fixed it by adding navbar to the exclude area. :)

The add-on is Mood Manager.

orban 10-11-2006 03:29 PM

You can turn off the "Auto Edit Navbar" setting of Mood Manager (in your forum options again) and manually place the mood selector in the navbar template (follow the install.txt in the mood manager zip). If you do that you can cache the navbar too...

GlitterKill 10-11-2006 03:30 PM

I'll give it a shot. :)

Edit: It worked, btw. :)

GlitterKill 10-12-2006 01:43 PM

I hope you are eventually able to find a way to get your mod to work with auto-edits from other mods... In order to get all of the functionality of VBSEO that I had before and to get VBSpell to work I had to exclude these templates:

showthread_quickreply
editor_toolbar_on
postbit_quickedit
SHOWTHREAD
postbit_legacy

orban 10-12-2006 01:46 PM

It will never work. Those addons have to change their behaviour and allow a switch back to template edititing like Mood Manager.

Those addons do a str_replace on the template, but the template is actually a "filename", so you can't ever replace it's contents with str_replace.

Sorry... it's the way this addon works I thought a lot about it, but it is just not possible.


All times are GMT. The time now is 08:06 AM.

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.01423 seconds
  • Memory Usage 1,734KB
  • 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_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