vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Offline Template Compressor (https://vborg.vbsupport.ru/showthread.php?t=67142)

Andreas 07-12-2004 10:00 PM

Offline Template Compressor
 
This hack is similar to Logicians Realtime Template Compressor
(https://vborg.vbsupport.ru/showthread.php?t=56589), but uses
a slightly different approach:

Instead of doing the compression realtime when the pages are
generated, it compresses the templates right in the database when they
are being saved, so there will be zero overhead during normal operation.
The templates will still look normal when you edit them, just the
parsed versions will be compressed.

Currently this hack does not touch JavaScript, so there should be
no issues with that.
(JavaScript could also be compressed, but then there must be no
comments in it)

Results may vary, but this could reduce traffic approx. 5-10%,
even if you use GZip (recommended).

Details
-------
Difficulty: Easy
Files to modify: 1

Polo 07-13-2004 10:37 PM

Thanks for sharing your hack with the community

corsacrazy 07-13-2004 11:22 PM

what improovments on load time ?

MrNase 07-14-2004 03:59 AM

Nett :)

[high]* MrNase clicks install...[/high]

NuclioN 07-14-2004 06:27 AM

How do you create a setting in "vBulletin Options/Server Settings and Optimization Options" ??

TheComputerGuy 07-14-2004 12:20 PM

Quote:

Originally Posted by NuclioN
How do you create a setting in "vBulletin Options/Server Settings and Optimization Options" ??

I believe you have to have debug turned on in the config.php

Princeton 07-18-2004 05:02 PM

great job!

Boofo 07-18-2004 05:10 PM

So if we purposely used a space anywhere in the templates we will need to make it   then to get the space back after compressing?

Andreas 07-18-2004 10:23 PM

Yes, this might be necessary, although I tried to add some code to preserve spaces that are there intentionally, eg. for layout purposes.

tcs 08-01-2004 02:09 PM

I am having trouble getting the files in the phpinclude_start to run. Like the phreak statisick counter and my $banner software.

Any ideas?


All times are GMT. The time now is 11:12 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.04475 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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