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)

Cybertims 08-30-2006 08:35 PM

Is there any reason why the files it creates are being mae in the root folder and not in templates dir.....??

Cheers.

orban 08-30-2006 08:42 PM

Can you try to the set the path manually in the options?

Cybertims 08-30-2006 08:47 PM

Quote:

Originally Posted by orban
Can you try to the set the path manually in the options?

Tried that too......has no effect I'm afraid.

I'm running 3.5.5 on a windows server if that helps any.

Cheers

orban 08-30-2006 08:50 PM

Don't exactly know how paths on windows in PHP, maybe try \templates instead of /templates?

amcd 08-31-2006 07:26 AM

Quote:

Originally Posted by orban
I think if you are using gzip compression it doesn't matter at all, but correct me if I'm wrong.

orban, please think about my suggestion. gzip helps, but leaner templates are still desirable.

There are already a few plugins available here on vb.org for template compression, but i dont know how to integrate them with your product.

The drawback of those other plugins is that they try to compress the templates on every pageload, which means a lot of CPU cycles. If the same thing is implemented in your plug-in, the compression will happen only once when the template is added to the cache.

see what andreas has to say about compression:
https://vborg.vbsupport.ru/showpost....50&postcount=7

a few of the existing template compression threads:
https://vborg.vbsupport.ru/showthread.php?t=106333
https://vborg.vbsupport.ru/showthread.php?t=107615
https://vborg.vbsupport.ru/showthread.php?t=83248
https://vborg.vbsupport.ru/showthread.php?t=79923
https://vborg.vbsupport.ru/showthread.php?t=69787
https://vborg.vbsupport.ru/showthread.php?t=56589
https://vborg.vbsupport.ru/showthread.php?t=67142

orban 08-31-2006 10:55 AM

https://vborg.vbsupport.ru/showthread.php?t=107615 (vB 3.5)
https://vborg.vbsupport.ru/showthread.php?t=67142 (vB 3.0)

Those two compress the templates and save them to the database (instead of realtime). So they will work with this plugin.

You just have to manually clear the templates/ cache folder after you compress them I think.

Bulent Tekcan 09-03-2006 02:33 PM

Hello orban

Sometimes forumdisplay not open,only blank page.But other thread is working without any problem.

When I clear completely template directory this problem gone.

Any idea for that ?

orban 09-03-2006 02:49 PM

Hmm, that's a tough one.

Is the server load okay?

Are you using APC/eAccelerator?

Did you change the template?

Next time it happens make a copy of the template directory and manually look for empty/corrupt files. (You could send me a zip of the folder too so I can have a look).

Bulent Tekcan 09-03-2006 02:59 PM

My server load sometimes peak,but my forum online normaly 1400-1800 (cookie timeout 900) :)

Yes I'm using APC cache.

Yes....when I change some template after this problem occured.Or when I enter censor words occured again.

Thanks

orban 09-03-2006 03:45 PM

Does it ONLY happen after changing censor words/templates? It might be a problem with too many requests so the file creation gets messed up.


All times are GMT. The time now is 09:10 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.01347 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)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