只有在手动刷新浏览器时,PHP脚本才有效

I'm using the following PHP class to download website data from Google Webmaster Tools as CSV. The class is called from another PHP file, which contains the class include along with the login information. This file is pretty straightforward:

<?php
    include 'gwtdata.php';
    try {
        $email = "username@gmail.com";
        $password = "******";

        # If hardcoded, don't forget trailing slash!
        $website = "http://www.domain.com/";

        $gdata = new GWTdata();
        if($gdata->LogIn($email, $password) === true)
        {
            $gdata->DownloadCSV($website);
        }
    } catch (Exception $e) {
        die($e->getMessage());
    } 

However, it only downloads the CSV to the FTP server once I manually refresh my browser window, not when I open a new Tab and type the URL or I access the URL from another source, which is my biggest concern, as I am using R to call the URL and keep the data updated:

browseURL("URL", browser = "false")

I believe this should be a problem with the php.ini configuration, as the PHP script doesn't change at all. Do you know a way to bypass this behaviour?