Support » Plugins and Hacks » [Resolved] Map cached by Google

[Resolved] Map cached by Google

  • Hi,

    Since a couple of days/weeks, the rendered map is not updated when I modify the GPX file. The Track Editor works fine, I can check via SSH or HTTP that the file has changed.

    It seems that Google doesn’t reload the file when its URL remains unchanged. If I rename the file, the rendered map gets updated.

    I know we shouldn’t modify the plugin source code, but here is a quick workaround :

    in /wp-content/plugins/google-maps-gpx-viewer/google-maps-gpx-viewer.php, line 90 :

    $gpxfile = htmlspecialchars_decode($attr[‘gpx’]);
    $gpxfile .= ‘?v=’.rand(); // Force Google to download the file

    Maybe you could include it in the next release ?


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Map cached by Google’ is closed to new replies.