Jump to content
Sign in to follow this  
ignasia

Website loads fine, but forums are way too slow.

Recommended Posts

Hey Woodus.  I was wondering what the issue is, as my last ping check is 65ms average, but the forums load very slowly.  Perhaps look at what causes the most load...unsure if you're granted access to those type of tools.

I would suggest however the Preview function when hovering over a topic should be turned off.  Since that was turned on, the forums have been extra slow.

Share this post


Link to post
Share on other sites
Posted (edited)

I disabled the gallery temporarily, see if that speeds things up.

Also made some changes to the database.

Edited by Woodus
  • Upvote 1

Share this post


Link to post
Share on other sites
9 hours ago, Woodus said:

I disabled the gallery temporarily, see if that speeds things up.

Also made some changes to the database.

That seems to help quite a bit surprisingly.

Share this post


Link to post
Share on other sites
7 hours ago, vgchat said:

There's no gzip compression, if it were enabled it would literally reduce the page size in half.

https://gtmetrix.com/reports/www.woodus.com/iFTd0qd0

I checked against a couple other GZIP tests and they say it is compressed.

Share this post


Link to post
Share on other sites
Posted (edited)

Ah ok I see what you mean, it seems to not gzip assets that have a dynamic value at the end though.

https://www.webpagetest.org/performance_optimization.php?test=190409_K7_c40bf9d4e59be79c1edb631caace930c&run=3#compress_text

I don't use IPB myself but it does look like someone with the same issue found a solution (for the css at least).
https://invisioncommunity.com/forums/topic/303754-slow-loading-ipb-23x-vs-3/

Quote

I know you use minify and i know what it is just I had on my site enabled minify, gzip and js and CSS files were still huge. But later on in this conversation I have seen that in skin profile properties this two options weren't enabled:

- Cache CSS to text files?
- Compress Cached CSS?

Now they are enabled and soft refresh time was shaved from avg. 1.2s to 1.4s to 0.7-1s which is acceptable.

 

Edited by vgchat

Share this post


Link to post
Share on other sites

I flipped thru that topic, but that is comparing 2.3 vs 3.x, the current forums are on 4.4.x

If things are still slow then it could be because my new host doesn't allocate as many resources to shared hosts as the old one did (but they keep their software up to date where the old one didn't), thus unfortunately to move to a VPS host with enough space to house the Den is quite a jump in cost.

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

Ah ok, well there is one last thing you can try..  I notice that my vbulletin throws out those variables at the end of css & js too yet they still get gzipped & cached with the htaccess that I use.

So yeah I have some urls that look like this

https://www.vgchat.us/clientscript/vbulletin_css/style00029l/forumdisplay-rollup.css?d=1553909036

but they do fine with gzip & caching.  Here's the htaccess that I use that I actually originally made at vbulletin.org, give that a shot & let me know how it goes... also if IPB is giving you any friendly seo rewrite rules an a existing htaccess, just throw those on into this one.  This htaccess was originally created by W3 total cache for wordpress but me and some other users over at vbulletin found some stuff that needed changing around a bit, so here's our final result.

RewriteEngine on
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php

# BEGIN W3TC Browser Cache
<IfModule mod_mime.c>
AddType text/css .css
AddType application/javascript .js
AddType application/x-javascript .js
AddType text/html .html .htm
AddType text/richtext .rtf .rtx
AddType image/svg+xml .svg .svgz
AddType text/plain .txt
AddType text/xsd .xsd
AddType text/xsl .xsl
AddType text/xml .xml
AddType video/asf .asf .asx .wax .wmv .wmx
AddType video/avi .avi
AddType image/bmp .bmp
AddType application/java .class
AddType video/divx .divx
AddType application/msword .doc .docx
AddType application/x-msdownload .exe
AddType image/gif .gif
AddType application/x-gzip .gz .gzip
AddType image/x-icon .ico
AddType image/jpeg .jpg .jpeg .jpe
AddType application/vnd.ms-access .mdb
AddType audio/midi .mid .midi
AddType video/quicktime .mov .qt
AddType audio/mpeg .mp3 .m4a
AddType video/mp4 .mp4 .m4v
AddType video/mpeg .mpeg .mpg .mpe
AddType application/vnd.ms-project .mpp
AddType application/vnd.oasis.opendocument.database .odb
AddType application/vnd.oasis.opendocument.chart .odc
AddType application/vnd.oasis.opendocument.formula .odf
AddType application/vnd.oasis.opendocument.graphics .odg
AddType application/vnd.oasis.opendocument.presentation .odp
AddType application/vnd.oasis.opendocument.spreadsheet .ods
AddType application/vnd.oasis.opendocument.text .odt
AddType audio/ogg .ogg
AddType application/pdf .pdf
AddType image/png .png
AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
AddType audio/x-realaudio .ra .ram
AddType application/x-shockwave-flash .swf
AddType application/x-tar .tar
AddType image/tiff .tif .tiff
AddType audio/wav .wav
AddType audio/wma .wma
AddType application/vnd.ms-write .wri
AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
AddType application/zip .zip
</IfModule>
# END W3TC Browser Cache

# START E-Tag
<ifModule mod_headers.c>
Header unset ETag
</ifModule>
FileETag None
# END E-Tag

# START Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
# END Deny attempts to view the Htaccess file.

# Start Deny attempts to view the config file.
<Files includes/config.php> 
Order allow,deny
Deny from all
</Files>  
# End Deny attempts to view the config file.

# START Mime-Type
<IfModule mod_mime.c>
AddType text/css .css
AddType text/richtext .rtf .rtx
AddType image/svg+xml .svg .svgz
AddType text/plain .txt
AddType text/xsd .xsd
AddType text/xsl .xsl
AddType video/asf .asf .asx .wax .wmv .wmx
AddType video/avi .avi
AddType image/bmp .bmp
AddType application/java .class
AddType video/divx .divx
AddType application/msword .doc .docx
AddType application/x-msdownload .exe
AddType image/gif .gif
AddType application/x-gzip .gz .gzip
AddType image/x-icon .ico
AddType image/jpeg .jpg .jpeg .jpe
AddType application/vnd.ms-access .mdb
AddType audio/midi .mid .midi
AddType video/quicktime .mov .qt
AddType audio/mpeg .mp3 .m4a
AddType video/mp4 .mp4 .m4v
AddType video/mpeg .mpeg .mpg .mpe
AddType application/vnd.ms-project .mpp
AddType application/vnd.oasis.opendocument.database .odb
AddType application/vnd.oasis.opendocument.chart .odc
AddType application/vnd.oasis.opendocument.formula .odf
AddType application/vnd.oasis.opendocument.graphics .odg
AddType application/vnd.oasis.opendocument.presentation .odp
AddType application/vnd.oasis.opendocument.spreadsheet .ods
AddType application/vnd.oasis.opendocument.text .odt
AddType audio/ogg .ogg
AddType application/pdf .pdf
AddType image/png .png
AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
AddType audio/x-realaudio .ra .ram
AddType application/x-shockwave-flash .swf
AddType application/x-tar .tar
AddType image/tiff .tif .tiff
AddType audio/wav .wav
AddType audio/wma .wma
AddType application/vnd.ms-write .wri
AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
AddType application/zip .zip
</IfModule>
# END Mime-Type

# START Expires Headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css A2628000
ExpiresByType text/richtext A3600
ExpiresByType image/svg+xml A3600
ExpiresByType text/plain A3600
ExpiresByType text/xsd A3600
ExpiresByType text/xsl A3600
ExpiresByType video/asf A2628000
ExpiresByType video/avi A2628000
ExpiresByType image/bmp A2628000
ExpiresByType application/java A2628000
ExpiresByType video/divx A2628000
ExpiresByType application/msword A2628000
ExpiresByType application/x-msdownload A2628000
ExpiresByType image/gif A2628000
ExpiresByType application/x-gzip A2628000
ExpiresByType image/x-icon A2628000
ExpiresByType image/jpeg A2628000
ExpiresByType application/vnd.ms-access A2628000
ExpiresByType audio/midi A2628000
ExpiresByType video/quicktime A2628000
ExpiresByType audio/mpeg A2628000
ExpiresByType video/mp4 A2628000
ExpiresByType video/mpeg A2628000
ExpiresByType application/javascript A2628000
ExpiresByType application/x-javascript A2628000
ExpiresByType application/vnd.ms-project A2628000
ExpiresByType application/vnd.oasis.opendocument.database A2628000
ExpiresByType application/vnd.oasis.opendocument.chart A2628000
ExpiresByType application/vnd.oasis.opendocument.formula A2628000
ExpiresByType application/vnd.oasis.opendocument.graphics A2628000
ExpiresByType application/vnd.oasis.opendocument.presentation A2628000
ExpiresByType application/vnd.oasis.opendocument.spreadsheet A2628000
ExpiresByType application/vnd.oasis.opendocument.text A2628000
ExpiresByType audio/ogg A2628000
ExpiresByType application/pdf A2628000
ExpiresByType image/png A2628000
ExpiresByType application/vnd.ms-powerpoint A2628000
ExpiresByType audio/x-realaudio A2628000
ExpiresByType application/x-shockwave-flash A2628000
ExpiresByType application/x-tar A2628000
ExpiresByType image/tiff A2628000
ExpiresByType audio/wav A2628000
ExpiresByType audio/wma A2628000
ExpiresByType application/vnd.ms-write A2628000
ExpiresByType application/vnd.ms-excel A2628000
ExpiresByType application/zip A2628000
</IfModule>
# END Expires Headers

# BEGIN Compress text files
<ifModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
  AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml
  AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
  AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json
  AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
  AddOutputFilterByType DEFLATE font/truetype font/opentype

# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
</ifModule>
# END Compress text files 

# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
  <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
    Header set Cache-Control "max-age=29030400, public"
  </filesMatch>
  <filesMatch "\.(css)$">
    Header set Cache-Control "public"
  </filesMatch>
  <filesMatch "\.(js)$">
    Header set Cache-Control "private"
  </filesMatch>
  <filesMatch "\.(x?html?|php)$">
    Header set Cache-Control "private, must-revalidate"
  </filesMatch>
</ifModule>
# END Cache-Control Headers

 

Edited by vgchat

Share this post


Link to post
Share on other sites

@vgchat I implemented those changes (tweaking a few things) and putting the IBP friendly rewrites in there, and it brought the score on GTmetrix from an F to a B on pagescore

https://gtmetrix.com/reports/www.woodus.com/AOWknsXh

Thanks for the help, gave you a contributors badge for that :)

Share this post


Link to post
Share on other sites
Posted (edited)

Nice, glad to hear it worked out for you :)  It definitely feels faster browsing around now.

Edited by vgchat

Share this post


Link to post
Share on other sites
1 hour ago, vgchat said:

Nice, glad to hear it worked out for you :)  It definitely feels faster browsing around now.

Agreed, main site seems to have sped up a bit as well. I guess we will see how it goes over the next few days and thru the weekend.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...