![]() |
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 |
Thanks for sharing your hack with the community
|
what improovments on load time ?
|
Nett :)
[high]* MrNase clicks install...[/high] |
How do you create a setting in "vBulletin Options/Server Settings and Optimization Options" ??
|
Quote:
|
great job!
|
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?
|
Yes, this might be necessary, although I tried to add some code to preserve spaces that are there intentionally, eg. for layout purposes.
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|