• Resolved jgadbois

    (@jgadbois)


    The autoptimize settings page says the cache directory should be:

    wp-content/cache/autoptimize/10/

    However, on the page itself, it’s looking for the javascript file at

    wp-content/cache/autoptimize/

    It appears it’s missing the blog id on the outputted HTML.

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

    (@optimizingmatters)

    weird. does the same happen on the other subsites?

    Thread Starter jgadbois

    (@jgadbois)

    Yes, I’ve seen it happen on several subsites.

    “Upload path” setting is set to wp-content/blogs.dir/10/files
    “Upload URL path” is blank

    I don’t think either of those should affect the cache directory though, right?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    The cache URL is set at https://github.com/futtta/autoptimize/blob/master/classes/autoptimizeMain.php#L113-L120 and there are but 3 conditions under which the blog ID would not be added;

    -> the WordPress core function is_multisite not working
    -> the autoptimize_separate_blog_caches being false‘d
    -> the WordPress Core function get_current_blog_id not working

    The easiest way forward would be to add some error-logging to that function (I can provide the code to change) and see what we learn from that?

    Thread Starter jgadbois

    (@jgadbois)

    I will check thanks – #2 autoptimize_separate_blog_caches might be false, that sounds familiar but I will get some debug info for you.

    Thread Starter jgadbois

    (@jgadbois)

    I had 2.3.4 – upgrading to 2.4.4 seemed to fix things, sorry about that. Running through everything to confirm.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Happy that (seems to, pending final confirmation) have fixed the problem jgadbois, feel free to leave a review of the plugin and support here! 🙂

    have a nice weekend!
    frank

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Wrong js bundle URL on MU’ is closed to new replies.