• Resolved Dharmesh Patel

    (@dharm1025)


    Hello Frank,

    Thanks for developing and maintaining this super awesome plugin.

    I want to use this plugin on WordPress multi-site network. where all sub-sites are handle by our customers. So, Is there any way to we can save minify settings at network level (wp_sitemeta) for multi-site instead of wp_options of all separate site? so main thing is that which I want to achieve is develop a single setting screen at network admin and make changes in that will reflect on all sub-sites. without making any changes on sub-sites.

    Also, are you planing to add apply_filters on get() function of autoptimizeConfig so I can develop setting screen at network admin, save data at sitemeta table and apply this config on all site using add_filter on config data.

    Last question, how I can handle cleat cache for all site at once?

    Any help would be appreciates. thanks again for develop such powerful tool.

    Thanks,
    Dharmesh Patel

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

    (@optimizingmatters)

    Hi Dharmesh;
    There indeed is no network settings page now, but you can easily enforce settings with some PHP-code as seen in this gist. Moreover most settings can be overridden with a filter (albeit not on the get() function, I might add that one day).

    clear cache for all sites works if you set the autoptimize_separate_blog_caches filter to false, in which case all sub-sites store their cache in the same directory.

    hope this helps,
    frank

    Thread Starter Dharmesh Patel

    (@dharm1025)

    Hello @optimizingmatters,

    Thanks for detailed and super fast reply.

    Best Regards,
    Dharmesh

    Hi –

    I’ve got related questions so thought I’d just make addendum here.

    1) is it safe to delete the folders… wp-content/uploads/cache/autoptimize/_subsite-ID_/

    2) I believe, for the mu-plugin we simply add

    ‘autoptimize_separate_blog’ => ”,

    to the list of // default Autoptimize settings …

    3) does

    ‘autoptimize_css_inline’ => ‘on’,

    contribute a lot to the cache size or is it more js_inline that causes the problem? (I know “it depends” but wondering if it is worth size versus speed)

    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    1. yes, AO will recreate if there are new requests for that subsite
    2. for autoptimize_separate_blog I guess you are referring to the autoptimize_separate_blog_caches filter? there is no similar setting for that, so you’ll have to do add_filter('autoptimize_separate_blog_caches','__return_false'); in the mu-plugin
    3. I guess you’re referring to autoptimize_css_include_inline instead, in general that does not contribute to cache size.

    frank

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Option for network wide settings for all subsite if multisite is configured’ is closed to new replies.