• Resolved d-media

    (@martijnh)


    Hi,

    Thanks for this great plugin.

    Sanitize
    At what times does your plugin sanitize it’s data?
    On save only, or also on loading with ot_get_option?

    Performance
    I see the options are loaded in 1 query at the start of building a page. So that’s nice.
    Which one of the methods below would you suggest performance wise?

    – first one requests your function 2 times (cpu)
    – second one only once, but uses an extra $var (memory)

    if (ot_get_option('meta_author')){
    echo ot_get_option('meta_author'));
    }

    or

    $option_name=ot_get_option('meta_author');
    if ($option_name != ''){
    echo $option_name;
    }

    Thanks

    https://wordpress.org/plugins/option-tree/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Sanitize & Performance’ is closed to new replies.