• Resolved Yulia1872

    (@yulia1872)


    Hi there! If we have the plugin installed and are showing the opening hours via Google Places API on every page, does the plugin send an API request each time someone visits the page? (ie. if we have 10K visits to the site, it’s going to send 10K requests?) Just wondering how that works with the Google API Pricing / limits.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Design Extreme

    (@designextreme)

    @yulia1872 The requests are performed periodically – once a day – by the web server to the Places API using WordPress’s CRON functionality.

    If you import opening hours manually, this will increase your requests by the same amount this is applied (pressing the button in the Dashboard management page).

    • This reply was modified 1 year, 10 months ago by Design Extreme. Reason: Last paragraph
    Thread Starter Yulia1872

    (@yulia1872)

    I see thank you! How does that work in the back-end – where is the opening hours data stored? From what I could gather, Google Places API does not allow to store/cache/import data in their terms of service, how is the plugin able to store the opening hours for 24h and then run a cron to refresh it?

    • This reply was modified 1 year, 9 months ago by Yulia1872.
    Plugin Author Design Extreme

    (@designextreme)

    @yulia1872 The data for the opening hours is stored in the wp_options table. You can view the source code for more details – including the sync method used to collect data.

    Thread Starter Yulia1872

    (@yulia1872)

    Yes, I see that – I am just wondering how / if it’s technically not violating Google’s terms of service by storing the data that they explicitly say you can’t store “you must not pre-fetch, index, store, or cache any Content except under the limited conditions stated in the terms.”

    Plugin Author Design Extreme

    (@designextreme)

    This data is directly associated with your business’s opening hours and the Places API data is there for you to refresh the plugin’s data. It is not a requirement and can be initiated manually (saving you the need to read and enter this yourself). The regular task of refreshing your own business data is an option open to you as an alternative to Structured Data (the recommended option) which performs the same task. I do not see how this is caching of Google’s data, rather, it is giving you the option to update your own data using the Places API.

    Remember, this is an entirely optional piece of functionality and if you’re personally worried about Google’s terms, please avoid using this option.

    Thread Starter Yulia1872

    (@yulia1872)

    Okay thank you for your clarifications and patience!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘If using with Google Places API, how often does it send the requests?’ is closed to new replies.