My

Hi,

My main site is loading very fast but the subdomains are very slow to load. What is the reason? How can i get them load fast?

  • Luís
    • Support

    Hi Imran Umer ,

    Hope you’re doing well today!

    It can be related to some reasons, server resources, theme and plugins used, etc..

    Have you tried to increase the memory?

    https://premium.wpmudev.org/blog/increase-memory-limit/

    Have you tried to run a plugin like P3 to check the plugin impact?

    https://wordpress.org/plugins/p3-profiler/

    Also, can you give us access to your admin panel, so we can give a look?

    If you don’t already know, please, follow the link below, to see how enable the staff login:

    http://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    When you enable this option, please post again!

    Cheers, Luís

  • Imran Umer
    • Design Lord, Child of Thor

    Hi,

    I have increased the memory as mentioned above. but it did not make any difference.

    also i installed P3profiler. WMDev Side bars plugin was causing the slowness. i deleted it abut still it did not make any difference.

    Can you plz look into this? Thanks

  • Luís
    • Support

    Hi Imran Umer ,

    Hope you’re doing well today!

    1) Have you inserted the Browser Caching rules manually in your .htaccess? Can you share it with us?

    2) Seems that your server is not using a query cache. It will not have a hudge impact, but can improve your website. Can you try ask to your host provider if can enable it? I think this article may interest you:

    https://haydenjames.io/mysql-query-cache-size-performance/

    3) I checked you first subsite (majes…..) and seems that you are not using the minification feature. It is creates issues with your theme?

    Cheers, Luís

  • Imran Umer
    • Design Lord, Child of Thor

    suPHP_ConfigPath /home/skoolsystem/public_html

    SetEnv MAGICK_THREAD_LIMIT 1

    SetEnv MAGICK_MAX_MEMORY 256

    RewriteEngine On

    RewriteBase /

    RewriteRule ^index.php$ – [L]

    # add a trailing slash to /wp-admin

    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]

    RewriteCond %{REQUEST_FILENAME} -d

    RewriteRule ^ – [L]

    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]

    RewriteRule ^(.*.php)$ $1 [L]

    RewriteRule . index.php [L]

    # BEGIN WP-HUMMINGBIRD-CACHING

    # END WP-HUMMINGBIRD-CACHING

    ## WP Defender – Prevent information disclosure ##

    <FilesMatch “.(txt|md|exe|sh|bak|inc|pot|po|mo|log|sql)$”>

    Order allow,deny

    Deny from all

    </FilesMatch>

    ## WP Defender – End ##

    ## EXPIRES CACHING ##

    <IfModule mod_expires.c>

    ExpiresActive On

    ExpiresByType image/jpg “access plus 1 year”

    ExpiresByType image/jpeg “access plus 1 year”

    ExpiresByType image/gif “access plus 1 year”

    ExpiresByType image/png “access plus 1 year”

    ExpiresByType text/css “access plus 1 month”

    ExpiresByType application/pdf “access plus 1 month”

    ExpiresByType text/x-javascript “access plus 1 month”

    ExpiresByType application/x-shockwave-flash “access plus 1 month”

    ExpiresByType image/x-icon “access plus 1 year”

    ExpiresDefault “access plus 2 days”

    </IfModule>

    ## EXPIRES CACHING ##

    <IfModule mod_expires.c>

    # Enable expirations

    ExpiresActive On

    # Default directive

    ExpiresDefault “access plus 1 month”

    # My favicon

    ExpiresByType image/x-icon “access plus 1 year”

    # Images

    ExpiresByType image/gif “access plus 1 month”

    ExpiresByType image/png “access plus 1 month”

    ExpiresByType image/jpg “access plus 1 month”

    ExpiresByType image/jpeg “access plus 1 month”

    # CSS

    ExpiresByType text/css “access plus 1 month”

    # Javascript

    ExpiresByType application/javascript “access plus 1 year”

    </IfModule>

    # BEGIN WPSuperCache

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    #If you serve pages from behind a proxy you may want to change ‘RewriteCond %{HTTPS} on’ to something more sensible

    AddDefaultCharset UTF-8

    RewriteCond %{REQUEST_URI} !^.*[^/]$

    RewriteCond %{REQUEST_URI} !^.*//.*$

    RewriteCond %{REQUEST_METHOD} !POST

    RewriteCond %{QUERY_STRING} !.*=.*

    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$

    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9″]+ [NC]

    RewriteCond %{HTTP:stuck_out_tongue:rofile} !^[a-z0-9″]+ [NC]

    RewriteCond %{HTTP_USER_AGENT} !^.*(2.0 MMP|240×320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo Wii|Nitro|Nokia|Opera Mini|Palm|PlayStation Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915 Obigo|LGE VX|webOS|Nokia5800).* [NC]

    RewriteCond %{HTTP_user_agent} !^(w3c |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda |xda-).* [NC]

    RewriteCond %{HTTP:Accept-Encoding} gzip

    RewriteCond %{HTTPS} on

    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz -f

    RewriteRule ^(.*) “/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz” [L]

    RewriteCond %{REQUEST_URI} !^.*[^/]$

    RewriteCond %{REQUEST_URI} !^.*//.*$

    RewriteCond %{REQUEST_METHOD} !POST

    RewriteCond %{QUERY_STRING} !.*=.*

    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$

    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9″]+ [NC]

    RewriteCond %{HTTP:stuck_out_tongue:rofile} !^[a-z0-9″]+ [NC]

    RewriteCond %{HTTP_USER_AGENT} !^.*(2.0 MMP|240×320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo Wii|Nitro|Nokia|Opera Mini|Palm|PlayStation Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915 Obigo|LGE VX|webOS|Nokia5800).* [NC]

    RewriteCond %{HTTP_user_agent} !^(w3c |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda |xda-).* [NC]

    RewriteCond %{HTTP:Accept-Encoding} gzip

    RewriteCond %{HTTPS} !on

    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz -f

    RewriteRule ^(.*) “/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz” [L]

    RewriteCond %{REQUEST_URI} !^.*[^/]$

    RewriteCond %{REQUEST_URI} !^.*//.*$

    RewriteCond %{REQUEST_METHOD} !POST

    RewriteCond %{QUERY_STRING} !.*=.*

    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$

    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9″]+ [NC]

    RewriteCond %{HTTP:stuck_out_tongue:rofile} !^[a-z0-9″]+ [NC]

    RewriteCond %{HTTP_USER_AGENT} !^.*(2.0 MMP|240×320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo Wii|Nitro|Nokia|Opera Mini|Palm|PlayStation Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915 Obigo|LGE VX|webOS|Nokia5800).* [NC]

    RewriteCond %{HTTP_user_agent} !^(w3c |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda |xda-).* [NC]

    RewriteCond %{HTTPS} on

    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html -f

    RewriteRule ^(.*) “/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html” [L]

    RewriteCond %{REQUEST_URI} !^.*[^/]$

    RewriteCond %{REQUEST_URI} !^.*//.*$

    RewriteCond %{REQUEST_METHOD} !POST

    RewriteCond %{QUERY_STRING} !.*=.*

    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$

    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9″]+ [NC]

    RewriteCond %{HTTP:stuck_out_tongue:rofile} !^[a-z0-9″]+ [NC]

    RewriteCond %{HTTP_USER_AGENT} !^.*(2.0 MMP|240×320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo Wii|Nitro|Nokia|Opera Mini|Palm|PlayStation Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915 Obigo|LGE VX|webOS|Nokia5800).* [NC]

    RewriteCond %{HTTP_user_agent} !^(w3c |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda |xda-).* [NC]

    RewriteCond %{HTTPS} !on

    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html -f

    RewriteRule ^(.*) “/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html” [L]

    </IfModule>

    # END WPSuperCache

    # BEGIN supercache

    <IfModule mod_mime.c>

    <FilesMatch “.html.gz$”>

    ForceType text/html

    FileETag None

    </FilesMatch>

    AddEncoding gzip .gz

    AddType text/html .gz

    </IfModule>

    <IfModule mod_deflate.c>

    SetEnvIfNoCase Request_URI .gz$ no-gzip

    </IfModule>

    <IfModule mod_headers.c>

    Header set Vary “Accept-Encoding, Cookie”

    Header set Cache-Control ‘max-age=3, must-revalidate’

    </IfModule>

    <IfModule mod_expires.c>

    ExpiresActive On

    ExpiresByType text/html A3

    </IfModule>

    Options -Indexes

    # END supercache

    # BEGIN WordPress

    # END WordPress

  • Imran Umer
    • Design Lord, Child of Thor

    Hi,

    You mentioned to minify the sub site. I dont find any plugin which can minify the subsites. Is there any?

    support.skoolsystem.com is a fresh install with no text, pics and sliders. it is also loading slow as other sub sites. What could be the reason?

  • Luís
    • Support

    Hi Imran Umer ,

    Hope you’re doing well today!

    You are having a hudge TTFB (Time to First Byte Test), between15-20s. And from what I tested, this happens in all subsites (including the main site).

    https://www.keycdn.com/blog/a-slow-website-time-to-first-byte-ttfb/

    I would like to check the log files, so, can you enable the debug flags in your wp-config.php?

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );

    It will be saved to a debug.log file inside the “wp-content” folder. Can you share it with us along with the error_log file?

    https://codex.wordpress.org/Debugging_in_WordPress

    Note: Save the file as a .txt, because the .log extension is not allowed in the attachments.

    Cheers, Luís

  • Jude
    • DEV MAN

    I took a look at the logs, quite a bit of errors related to cache. That said the primary reason this may be the case is the TTFB is really low, you may want to increase the memory allocated to the site and consider even getting a better hosting package

    Cheers

    Jude

  • Luís
    • Support

    Hi Imran Umer ,

    Hope you’re doing well today!

    1) I tried to make some research about the “PHP Warnings” you have in the debug log file, but, unfortunately, I was unable. As they are related to WP Super Cache, I think the best option is try get some support from the plugin’s developers:

    https://wordpress.org/support/plugin/wp-super-cache

    They know better the code involved and are better prepared to help you.

    The error_log file is a bit “heavy”, I don’t know which are your host space quota, but, make sure you are not in the limit. Maybe you can download it, and after that, delete the file from the server. When the system recreate it, it will be a smallest file.

    I hope this information has been helpful. If I can help you in this or other questions, please let me know!

    Cheers, Luís

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.