Support » Plugin: Autoptimize » Stop E-Mail notification

  • Resolved haidepzai


    Hey guys,

    is there a way to disable the mail notification? I couldn’t find any settings.
    I also tried this snippet


    I added this in the functions.php but it doens’t work.
    Also I have Code Snippets plugin installed and tried with that as well but I still get mails.

    Is there another way?

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


    that filter should work, pretty weird it does not. you could also try


    and if those don’t work either (which they should), then you could uncomment out the relevant line in autoptimize/classes/autoptimizeCacheChecker.php?

    Thread Starter haidepzai


    Thank you! I will try that.
    I inserted that code into Code Snippets like that:


    Is it ok?

    Plugin Author Optimizing Matters


    yep, looks OK 🙂

    Trying again. I have tried all these snippets in code snippets to no effect. They keep getting emails every day and the cache is never over 50 Mb. LOL.

    Tried commenting out the actual code, but I guess I don’t know how to do it properly. Broke the site.

    Plugin Author Optimizing Matters


    No idea why that would happen (mail seven when cache is never over 50MB), but commenting out is changing

    $ao_mailresult = wp_mail( $ao_mailto, $ao_mailsubject, $ao_mailbody );


    // $ao_mailresult = wp_mail( $ao_mailto, $ao_mailsubject, $ao_mailbody );

    in wp-content/plugins/autoptimize/classes/autoptimizeCacheChecker.php (on/ around line 70)

    hope this helps,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Stop E-Mail notification’ is closed to new replies.