• Resolved johnny538

    (@johnny538)


    Hi Frank,

    I have a client site I need to optimize. Inside his webroot aside from WP files, he also has a /forum/ directory that runs Vanilla Forums. In WP he has a page that embeds the forum. He uses Vanilla Forums plugin and Vanilla Connect to connect seamless between WP and the forums.

    When AO has JS optimization enabled. The /forum/ works (since it’s not WP), but the WP page that embeds the forum stops working. I tried excluding the vanilla related plugins from JS optimization but it didn’t work.

    The developer console reports a error where the webapplication cannot seem to find a specific css (but I’m sure it can’t find the js files either). It’s looking in $webroot/application/ for the file which doesn’t exist. It does exist in $webroot/forums/applications/ so for some reason when AO is enabled, the /forum/ directory is omitted from the resource locator.

    Perhaps because some css or js code is referring to a relative location instead of absolute ?

    Anyways, do you have any ideas ?

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

    (@optimizingmatters)

    Hmm, could be due to AO minifying files that are excluded from aggregation, which could break paths if not absolute. You can disable that functionality with these filters (it will be in option in AO25 of which you can download the beta here);

    add_filter('autoptimize_filter_js_minify_excluded','__return_false');
    add_filter('autoptimize_filter_css_minify_excluded','__return_false');

    hope this helps,
    frank

    Thread Starter johnny538

    (@johnny538)

    Thanks ! Works like a charm.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Thread Starter johnny538

    (@johnny538)

    Btw, on an unrelated note, do you have any advice on how I can find out what’s filling up the cache fast for a particular site I’m trying to optimize ? After a few hours of traffic it’s nearing 1gb of AO cache ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    assuming “also aggregate inline JS” is already disabled, maybe uncheck “also aggregate inline CSS” as well?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Vanilla Forums + AO’ is closed to new replies.