• Resolved randolrf

    (@randolrf)


    The flow number appears stuck on the same value for this gage:
    [USGS location=’03049500′ title=’Allegheny river at Natrona’ graph=’show’ /]

    The “Flow: 17900 ft3/s” and “Water Level: 12.13 ft” are wrong, but the graphs show correct data.

    Is anyone else having this issue?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chris Kindred

    (@chrismkindred)

    @randolrf I just added the location to a test page on my site and it is showing the correct data points (31800 ft3/s, 13.38 ft). The data gets cached in a transient on the site in order to keep from querying the site on each page load. I am thinking that it might be showing a cached value. The cache should expire every 12 hours but I am thinking about making the total cache time as part of the shortcode attributes.

    https://www.kindredwebconsulting.com/wp-plugins/

    Plugin Author Chris Kindred

    (@chrismkindred)

    I just released a new version of the plugin that addresses an issue with the caching and verifies that the plugin works with WordPress Core 5.7.2. If you continue to have any other issues, let me know.

    Thread Starter randolrf

    (@randolrf)

    Excellent – it now works for us after installing the new version. The earlier caching glitch for us may have been related to another plugin, but none of my standard troubleshooting (disabling plugins, changing themes, etc.) worked.

    hi chris, i also am having trouble with the gauge showing old data. it seems to be only updating every couple hours instead of 15 minute intervals. is there anything i can do on my end to solve this? i am using siteground for hosting with the sg optimizer plugin but i disabled all the caching options and it is still behind. site is built with the divi theme. here is the page

    https://www.salinerivercanoe.com/river-conditions/

    thank you for your help and for creating a great and useful plugin!

    Plugin Author Chris Kindred

    (@chrismkindred)

    I use a transient to cache the request for 12 hours. There is a way to clear all the transients through the WP CLI but that will affect the site speed if you get a lot of traffic. Depending on your host and how they handle transients, but unless you are running an object cache like Memcached or Redis your transients are stored in the database and won’t be affected by the server page caching options.

    Sounds to me like I need a new feature that allows the user to set the caching time. I’ll see about adding that in with a future update.

    thank you for your reply, I look forward to that future update!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Showing incorrect flow number’ is closed to new replies.