WordPress.org

Ready to get started?Download WordPress

Forums

Hyper Cache
WordPress MU Compatibility (3 posts)

  1. Peter Chester
    Modern Tribe
    Posted 1 year ago #

    I'd like to use this on a MU install. However, I don't want to have to configure this for every blog. In fact, I'd prefer to have this be network configured.

    As a first step in that direction, the options need to be saved and retrieved using update_site_options and get_site_options instead of update_options and get_options.

    Additionally, the code update needs to migrate options so that people updating this plugin don't lose all their settings.

    It is also ideal if this worked without relying on the activation hook since mu plugins don't trigger that hook.

    Lastly, the settings UI needs to hide from the admin settings and display on network settings if is_multisite() == true.

    I believe I've covered all of these issues in this diff. I'm happy to send the raw plugin php files instead of a diff if you prefer.

    https://gist.github.com/2880732

    I'd be much obliged if you could include this in the next release so that I don't have to fork the code for my own projects.

    Thanks!!!

    http://wordpress.org/extend/plugins/hyper-cache/

  2. TomUsher
    Member
    Posted 1 year ago #

    Hi Peter,

    Is your code generic to all WP multi-sites?

    Where would I place your code to implement it?

    I'm an advanced user but not a programmer (learning).

    I am using Hyper Cache and do go through the process of deactivating on every site before updating the plugin. Also, when I add a new blog, I'm having to manually match the configuration settings of the plugin of the existing blogs to the new blog. These are chores I'd rather avoid if I'm able to utilize your "fork."

    Thank you for bringing this to the attention of the plugin's author.

    It's a good plugin. It's work very well for me for years now. I tried the other major caching plugins with some success (not as efficient or effortless).

    Your ideas/code, which I'm sure you have working on your MS, would be very welcome additions.

    In the meantime, anything you're able to explain here would be greatly appreciated by most, if not all, Hyper Cache multi-site administrator non-programmers (perhaps some programmers too).

  3. Jason
    Member
    Posted 1 year ago #

    I believe I've covered all of these issues in this diff. I'm happy to send the raw plugin php files instead of a diff if you prefer.

    PLEASE DEAR LORD SEND THOSE FILES

    I've been messing with diff files all night, and I'm about to merge it by hand!!!

    I get Hunk #1 FAILED at 1 and every Hunk # after that fails as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic