• Hey Frank,

    Question – do I really need WP Rocket and Autoptimize together? Is caching with Autoptimize the same as caching with WP Rocket? Is there any good reason to use both in tandem? I’m not really sure, so I thought I’d ask. I mean, if Autoptimize already has a cache, why use WP Rocket for a cache, if it’s just a duplication of efforts? I notice that WP Rocket says a bunch about turning off certain features if using Autoptimize. So, why not just use Autoptimize. I’m not clear on this. Hoping you can help.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Autoptimize does not do page caching, WP Rocket does. For a lot of our optimization services customers we actually combine Rocket with AO, leaving JS/ CSS/ HTML (and optionally image & google font) optimization to AO and letting Rocket do page caching and some extra’s.

    hope this clarifies,
    frank

    sally

    (@sallyruchman)

    Hi Frank,

    do you have a tutorial for the Config of Autoptimize and WP Rocket together?

    Thx
    Best regards
    Sally

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    apart from the generic advice described above; no I don’t I’m afraid.

    sally

    (@sallyruchman)

    Found a cool Post here https://flashlearners.com/autoptimize-configuration-settings/ , what you think of the settings?

    Thx
    Sally

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I would advise against “also aggregate inline JS” and the remark about “image optimization” causing extra requests is not entirely correct (it is only the case when the images are not on the Shortpixel CDN yet), but all in all not a bad guide. Do keep in mind though that settings that are optimal on site A might not be optimal on site B; testing, measuring and comparing are strongly advised ??

    sally

    (@sallyruchman)

    Thanks ?? Will try it on Dev

    @optimizingmatters which is the best combination with AO? WP-Rocket? W3 Total Cache?…

    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    In the “free” range; KeyCDN Cache Enabler or WP Super Cache

    If “premium” then I would indeed suggest WP Rocket.

    Hi there
    By the way i need a little help on wp-rocket plugin:
    When I want to exclude some pages from caching, it also excludes my css and js file optimization (which i need it on that page).

    Is there a way to exclude page cache (i mean get fresh html code) but still optimize css and js on that page?
    maybe a code to put in functions.php or other ways?
    thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hey alialialy;
    I’m assuming you’re not using Autoptimize then? ?? This is the Autoptimize support forum and I cannot provide support for WP Rocket I’m afraid.

    frank

    Well can i use both together?
    Is there a way to use autoptimize just in certain pages? not the whole website?
    I’ve used Autoptimize many times but i did not see any position to exclude or include certain pages! is there a solution?
    For example use functions.php or other way?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Well can i use both together?

    yes, on the condition that JS/ CSS opt. is off in Rocket

    Is there a way to use autoptimize just in certain pages? not the whole website? I’ve used Autoptimize many times but i did not see any position to exclude or include certain pages! is there a solution? For example use functions.php or other way?

    yes, with a code snippet like the one below (the condition would obviously need to be changed to reflect what you want to exclude from optimization, the example excludes everything with shop/ in the path);

    add_filter('autoptimize_filter_noptimize','noptimize',10,1);
    function noptimize( $flag_in ) {
    	if ( strpos( $_SERVER['REQUEST_URI'],'shop/' ) !== false ) {
    		return true;
    	} else {
    		return $flag_in;
    	}
    }
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Autoptimize and WP Rocket Question’ is closed to new replies.