• Resolved dleigh

    (@dleigh)


    In your docs on https://icalevents.com/support/documentation/shortcodes/ you say:

    Other

    refresh=true or nocache=true (forces a fresh fetch of the file each time ) used in url access only, not as shortcode

    I don’t know what you mean by “used in url access only”. I do have a shortcode to display an ical and I’d like it to be refreshed every time the page loads. Where exactly do I put this parameter? I’m sorry, it’s not clear to me.

    Many thanks!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author anmari

    (@anmari)

    Hi, Re shortcode parameter usage: You can also see examples of shortcode parameter usage lower on that page that you linked to. See
    https://icalevents.com/support/documentation/shortcodes/#examples

    Also it is just like any other shortcode parameter. See https://codex.ww.wp.xz.cn/Shortcode. Although I see there they refer to “attributes”. Hmm – parameters makes more sense to me!

    Re your second question, I assume you mean that you have an ics url to use in the shortcode? ‘Url access’ means you are accessing the events through a url and not from within your wordpress database as one would when using https://icalevents.com/downloads/amr-events/

    Re refreshing every time the page loads, bear in mind that the provider of the url

    1. may not update the ice file instantaneously. If you think it is not updating, save the file from the browser & open it in a text editor to check
      if your update is actually in the latest version or not.
    2. may place limits on the fetches. Read https://icalevents.com/1814-refresh-calendar-if-new-dates-not-showing/

    And yes, you can of course request the plugin to fetch the url each time and it will try, if it times out or gets any other problem, it will use the last fetched version.

    • This reply was modified 6 years, 1 month ago by anmari.
    • This reply was modified 6 years, 1 month ago by anmari. Reason: correct typos & clarify
    Thread Starter dleigh

    (@dleigh)

    Actually, this: https://icalevents.com/1814-refresh-calendar-if-new-dates-not-showing/ was the solution. I tried to use “refresh=true” and “nocache=true” as parameters in my shortcode but it had no effect. So, I still don’t understand what their purpose is or how to use them, but I found my solution. Thanks!

    Thread Starter dleigh

    (@dleigh)

    You can close this. thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘refresh nocache’ is closed to new replies.