• Resolved mack.hankins

    (@mackhankins)


    Is this first of all right and the most effective way to do this? It appears to be working sort of…


    <!-- mfunc $imatrix -->
    <?php
    //Let's grab some initial data from the Api
    $imatrix = new imatrix();
    $imatrix->SetURL($_SERVER['HTTP_HOST']);
    $imatrix->SetAPIACTION('SITEDATA');
    $imatrix->SetDATATYPE('DELIMITED');
    $imatrix->SetDELIMITER_1(',');
    $imatrix->SetDELIMITER_2(';');
    $imatrix->SetLIVE('Y');
    $imatrix->sitedata();
    //print_r($distribtop);
    ?>
    <!-- /mfunc -->

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mack.hankins

    (@mackhankins)

    Sorry, I was missing the concept all together. This is what it should look like and it works perfectly.

    <!-- mfunc
    $imatrix = new imatrix();
    $imatrix->SetURL($_SERVER['HTTP_HOST']);
    $imatrix->SetAPIACTION('SITEDATA');
    $imatrix->SetDATATYPE('DELIMITED');
    $imatrix->SetDELIMITER_1(',');
    $imatrix->SetDELIMITER_2(';');
    $imatrix->SetLIVE('Y');
    $imatrix->sitedata();
    -->
    <!-- /mfunc -->

    Can you explain what you are doing here? I can’t understand what part of the code disables the caching of this particular fragment..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: W3 Total Cache] Fragment Caching’ is closed to new replies.