• We have a multisite install, and want to activate the plugin on a site-by-site basis, not network-enable.

    We note that when we change the cache directory for one site in that site’s BWP option screen, it seems to write the data to wp_sitemeta, not wp_x_options as we would expect, so then that setting affects other sites on the network.

    We use _x_ here to represent blog id.

    When we inspect wp_x_options, and look at the cache/url path settings they do not seem to be the same as those presented in the options screen inputs for cache/url. Saving these options seems to sometimes(??) write to wp_x_options, but definately to wp_sitemeta, so when we refresh the options screen for another site, we see those cache/url settings have also changed.

    Is this intentional behavior?

    Is there a way of setting unique cache directories for each site the plugin is activated on?

    And slightly side-of-issue, when we set a cache directory to for instance somewhere in the theme, do we need to also copy the /min directory + assets, as mentioned elsewhere in this forum?

    Please advise!

    http://wordpress.org/plugins/bwp-minify/

Viewing 1 replies (of 1 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    Hi there,

    Regarding your questions:

    1. Is this intentional behavior? Is there a way of setting unique cache directories for each site the plugin is activated on?

    Yes this is intentional because that setting is for super-admin only, but this feature definitely needs tweaking so that a sub-site can have its own setting. However it is not trivial to implement such feature because when a DB update is needed things can get pretty ugly. Rest assured that you will have the choice to save settings globally or locally in version 2.x of all BWP plugins.

    => you might want to post a feature request on http://betterwp.net/community with details regarding this feature (how you want it to be implemented) so we can follow things a little more easily.

    2. And slightly side-of-issue, when we set a cache directory to for instance somewhere in the theme, do we need to also copy the /min directory + assets, as mentioned elsewhere in this forum?

    It is not required to do so, but is recommended. Changing the cache directory also requires you to modify the setting in Minify’s config.php file, so when BWP Minify is updated you will lose all modifications if you don’t move the directory. Perhaps you can make use of some symlinks?

Viewing 1 replies (of 1 total)
  • The topic ‘Changing cache directory on multisite for one site changes for all?’ is closed to new replies.