Comments on: WP Rocket VS SG Optimizer https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/ Sat, 03 Jul 2021 16:36:32 +0000 hourly 1 https://wordpress.org/?v=6.8.3 By: CourtneyB https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/#comment-29787 Sat, 03 Jul 2021 16:36:32 +0000 https://www.markhendriksen.com/?p=23955#comment-29787 In reply to AeroStar.

Wow, would be great to have a amateur user cheat sheet for which functions to turn out with each piece… I’d like to use both + perfmatters but no clue which options to make it most effective. Care to share? 🙂

]]>
By: Janis https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/#comment-29336 Tue, 22 Jun 2021 00:05:52 +0000 https://www.markhendriksen.com/?p=23955#comment-29336 In reply to Mark Hendriksen.

Thank you so much!

]]>
By: Mark Hendriksen https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/#comment-29234 Sat, 19 Jun 2021 06:55:55 +0000 https://www.markhendriksen.com/?p=23955#comment-29234 In reply to Janis.

Hi Janis,

Yes, I would disable those settings and let the SG optimizer plugin handle it for the whole site.

]]>
By: Janis https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/#comment-29210 Fri, 18 Jun 2021 15:23:11 +0000 https://www.markhendriksen.com/?p=23955#comment-29210 I have a question. I use Divi and have a site on SiteGround. If I use the SiteGround settings you have here, would I disable these settings in Divi theme options:

Minify And Combine Javascript Files
Minify And Combine CSS Files
Static CSS File Generation

Thank you so much!

]]>
By: AeroStar https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/#comment-27987 Sat, 15 May 2021 13:15:34 +0000 https://www.markhendriksen.com/?p=23955#comment-27987 In reply to AeroStar.

Update: (Important)

Both SG Optimizer and WP Rocket now automatically activate Browser Caching and GZIP Compression — with no option to turn them off or on manually.

Since we don’t want duplicated settings when using these plugins, you can eliminate this conflict as follows:

(1) Disregard the snippet provided above.

(2) Use the following snippet to deactivate both Browser Caching and GZIP Compression in WP Rocket:

// Remove Browser Caching (Duplicated in SG Optimizer)
add_filter(‘rocket_htaccess_mod_expires’, ‘__return_false’);

// Remove GZIP Compression (Duplicated in SG Optimizer)
add_filter(‘rocket_htaccess_mod_deflate’, ‘__return_false’);

(3) Deactivate then Activate WP Rocket.

(4) Clear all cache as stated above.

Hope this helps everyone reading this.

Cheers!

]]>
By: AeroStar https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/#comment-27843 Tue, 11 May 2021 15:57:56 +0000 https://www.markhendriksen.com/?p=23955#comment-27843 In reply to AeroStar.

Almost forgot 🙂

Dont’ forget to clear your Browser cache as well. To be on the safe side, always test your change using your browser’s incognito or private mode.

Also, here’s the other, recently-update article from WP Rocket concerning X-Proxy-Cache = MISS:

https://docs.wp-rocket.me/article/115-can-i-use-wp-rocket-with-sg-optimizer

Cheers!

]]>
By: AeroStar https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/#comment-27842 Tue, 11 May 2021 15:53:36 +0000 https://www.markhendriksen.com/?p=23955#comment-27842 In reply to Mark Hendriksen.

Yes, we have Memcached activated on our account.

One key finding and solution:

Many users complain that when using both SG Optimizer and WP Rocket, they always get the infamous X-Proxy-Cache = MISS when performing a HTTP Header check using one of the following online checkers:

https://www.webconfs.com/http-header-check.php
https://securityheaders.com
https://tools.keycdn.com/curl
https://httpstatus.io

To solve the above issue, simply do the following:

(1) Install and activate the plugin, Code Snippets

(2) Add the following snippet to your functions.php file or via Code Snippets (preferred):

function remove_htaccess_html_expire( $rules ) {

$rules = preg_replace( ‘@\s*#\s*Your document html@’, ”, $rules );
$rules = preg_replace( ‘@\s*ExpiresByType text/html\s*”access plus \d+ (seconds|minutes|hour|week|month|year)”@’, ”, $rules );

return $rules;
}

add_filter(‘rocket_htaccess_mod_expires’, __NAMESPACE__ . ‘\remove_htaccess_html_expire’);

add_filter(‘rocket_htaccess_mod_expires’, ‘__return_false’);

(3) Deactivate then Activate WP Rocket

(4) Clear all of your cache (Theme Cache, WP Rocket Cache and OpCache, SG Optimizer Cache, and CDN Cache) Make sure SG Optimizer’s cache is cleared from SG’s Site Tools (not within WordPress) and clear your CDN from withing the CDN’s dashboard (not within WordPress).

If the above does not fix the issue (it should!), then review the useful tips provided by WP Rocket (updated recently) as noted below. Just make sure you always deactivate and reactivate WP Rocket and flush all cache after making any changes.

https://docs.wp-rocket.me/article/1362-x-cache-miss-when-wp-rocket-is-activated

Result: A faster, less heavier website.

I hope this helps. If you haven’t already, you’re welcome to re-run your test with the above tips in mind.

Cheers!

]]>
By: Mark Hendriksen https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/#comment-27700 Sat, 08 May 2021 07:54:50 +0000 https://www.markhendriksen.com/?p=23955#comment-27700 In reply to AeroStar.

Thank you very much for your in-depth comment.

Excellent point in overlapping features. This can for sure crush your scores.

Out of curiosity, did you also enabled Memcache in SiteGround?

]]>
By: AeroStar https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/#comment-27607 Thu, 06 May 2021 20:27:29 +0000 https://www.markhendriksen.com/?p=23955#comment-27607 Great article but politely disagree with your conclusion. We also use SiteGround.

We have determined that using all three plugins (SG Optimizer, WP Rocket, and Perfmatters) and a CDN (Cloudflare) yields the best results for TTFB, Total Loading Time, No. of Requests, and Page Weight.

We have tested every imaginable plugin combination. The catch is making sure your selected plugin features do not overlap.

For testing, we recommend webpagetest.org, lighthouse (same as pagespeedinsights), and gtmetrix.com

SiteGround says website speeds are faster without WP Rocket, but never provide data to substantiate their claim. We have data proving otherwise.

And yes, Perfmatters is awesome. It has additional web performance features that SG Optimizer and WP Rocket do no have.

By following the above, our website speed is 1-3 seconds faster than using SG Optimizer alone.

Side Note: A website’s theme will also play a key role in determining website speed. For example, we use Avada. It performs well on desktop, but is atrocious on mobile or tablet. Avada is already working on refactoring their code. Details: https://theme-fusion.com/feature-voting/

Cheers!

]]>
By: Mark Hendriksen https://www.markhendriksen.com/wp-rocket-vs-sg-optimizer/#comment-26103 Thu, 08 Apr 2021 08:09:25 +0000 https://www.markhendriksen.com/?p=23955#comment-26103 In reply to Carlos Jimenez Tuesta.

Hi Carlos,

Could you provide a link to your site then I will have a look for you.

]]>