Support » Plugin: Autoptimize » No cache for logged in users wish

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frank Goossens

    (@futtta)

    sure, add this code to your child theme’s functions.php, in a plugin or -easiest- using the code snippets plugin:

    add_filter('autoptimize_filter_noptimize','logged_noptimize',10,0);
    function logged_noptimize() {
            if (is_user_logged_in()) {
                    return true;
            } else {
                    return false;
            }
    }

    frank

    Thread Starter Okoth1

    (@okoth1)

    Excellent! Thanks Frank.

    Anonymous User 14978628

    (@anonymized-14978628)

    Just what i was looking for. Would be good to have this as an option within the plugin itself.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No cache for logged in users wish’ is closed to new replies.