• Resolved aberbenni

    (@aberbenni)


    Following instructions on https://ajdg.solutions/manuals/adrotate-manuals/caching-support/ my settings are:

    – In General Settings Page Caching is Disk: Basic.
    – In Page Cache/Advanced Late Initialization is Enabled.
    – Tried with Minify off.
    – Tried with Minify on and ‘mfunc’ in the ignored comment stem field.
    – in wp-config.php i have: define('W3TC_DYNAMIC_SECURITY', 'XxXxxxxxXXxXXXXXXXxXXXxxxXXxxxxx');

    Output is:

    <!-- mfunc XxXxxxxxXXxXXXXXXXxXXXxxxXXxxxxx -->
    echo adrotate_group(X, 0, 0, 0);
    <!-- /mfunc XxXxxxxxXXxXXXXXXXxXXXxxxXXxxxxx -->

    At line 61 of adrotate-widget.php I found this code:

    if($instance['type'] == "group") {
      echo 'echo adrotate_group('.$instance['adid'].', 0, 0, 0);';
    }

    changing this to:

    if($instance['type'] == "group") {
      echo adrotate_group($instance['adid'], 0, 0, 0);
    }

    Works.

    • This topic was modified 6 years ago by aberbenni.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘With W3 Total Cache AdRotate output is: echo adrotate_group(X, 0, 0, 0);’ is closed to new replies.