vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Template Cache System (https://vborg.vbsupport.ru/showthread.php?t=110144)

Tralala 03-15-2006 11:28 PM

I use Hellcat's Realtime Page Compressor... does this work with that?

nht`bender 03-16-2006 02:13 PM

I have this problem (double vBShout, Members visited today, IRC manager) too...
Any ideas?

bada_bing 03-16-2006 10:28 PM

Quote:

Originally Posted by Tralala
I use Hellcat's Realtime Page Compressor... does this work with that?

I do too good question.... Also does this work on 3.5.3 ?

MissKalunji 03-16-2006 10:43 PM

Yes it does i have them all hellcat's and pluging accelerator and pluging cache and compresssors works fine:)

Andreas 03-16-2006 10:50 PM

Nice idea though I see two problems:

1) You could run into an endless loop trying to get a lock
2) Increased memory footprint
After some time, you've effectively cached templates for all actions.

I played with template caching myself (using APC) some time ago and didn't get any performacne increases - it even seemd to be a bit slower.

What are your experiences?

Scott MacVicar 03-16-2006 11:37 PM

I did the same test last year, i got marginal improvements in some scripts and performance loss in others. I was relying on APC etc to cache the file into memory.

MentaL 03-17-2006 12:09 PM

i have had no problems using it, infact it does help quite a fair bit on my forum.

Trigunflame 03-17-2006 12:52 PM

Quote:

Originally Posted by Andreas
Nice idea though I see two problems:

1) You could run into an endless loop trying to get a lock
2) Increased memory footprint
After some time, you've effectively cached templates for all actions.

I played with template caching myself (using APC) some time ago and didn't get any performacne increases - it even seemd to be a bit slower.

What are your experiences?

Using MySQL to get a first lock, then using FLOCK to attempt a lock there is a very minimal chance of running into an endless loop; even so it would timeout eventually as there is no code to not prevent from timing out. Even so, I could add a small counter into the while loop.

The memory footprint is increased with subsequent caching, and i Discussed that with a couple of other people while deciding how i should delegate uncached templates; at first I was sorting caches by their GET request ie.

private_trackpm_1.php and so forth; the problem with this is that there is no way to tell if the do= is a valid request, and would subsequently create bogus template cache files that were based off of global headers inherent to each inclusion of ./global.php

If you have a better idea feel free to say.

ps. It is faster on my end using this system; with a better plan and support for SHM via eaccelerator/apc/ etc.. it can be increased.

Trigunflame 03-17-2006 01:14 PM

Quote:

Originally Posted by mini2
OK, cleaned up my post to make it make more sense.

Basically misc.php (for buddylist) and private.php (for private messages) are broken for me by this script. If I delete the private_36.php and misc_36.php (and so on) from the cache directory, they work OK, but then once cached again, they break once more.

Can I exclude these from being cached somehow?

private works absolutely fine on my end, as well as misc.php; theres no reason why they should be excluded.

Whats the problem exactly.

Scott MacVicar 03-17-2006 05:25 PM

Your best not to store it in eaccelerator manually as you will get overhead for the unserialize calls for a large template array, storing it in files is the best way.

You should be able to use $_templatedo so that you cache the correct set of action templates, though personally I would create a single global cache file with the ones present in global.php and then a script / action specific cache.

Regarding uncached templates, why not look through the value of $vbulletin->templatecache at the end of script execution.

I have several designs for a potentially better system if you want to investigate.


All times are GMT. The time now is 03:27 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.01146 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
  • (3)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