question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

update-ping has been deprecated and replaced with update-cache API

See original GitHub issue

Eg. Canonical URL: http://www.exampledomain.com/ AMP URL: http://www.exampledomain.com/amp/

I made a php script that fetches URLs from my database in order to purge the whole domain cache.

Tried to “curl” the following addresses:

https://cdn.ampproject.org/update-ping/c/exampledomain.com/tags/tag/sometag/amp/ https://cdn.ampproject.org/update-ping/c/www.exampledomain.com/tags/tag/sometag/amp/ https://www-exampledomain-com.cdn.ampproject.org/update-ping/c/www.exampledomain.com/tags/tag/sometag/amp/

The response was 204 for any/all of them but the cache wasn’t updated. I checked my servers access logs but the requests from Google bots was far less than expected.

Please advise.

Kind regards

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rudygalficommented, Dec 8, 2017

@minamoto19 From your original report, it sounds like you saw some requests to your server for updates in response to using update-ping but an overall low volume? If so, that could be consistent with the rate limiting that update-ping has. It is not designed to accommodate a high volume of updates.

Could you try implementing the update-cache protocol to see if that helps?

1reaction
dreamofabearcommented, Dec 5, 2017

Looks like you might be missing the /s fragment for update-ping: https://developers.google.com/amp/cache/update-cache#update-ping-request

https://cdn.ampproject.org/update-ping/c/s/example.com

FYI update-cache is recommended instead and update-ping will eventually be deprecated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update AMP Content | Google AMP Cache
Use the update-cache request to update and remove content from the Google AMP Cache. ... A previous API called update-ping has been deprecated....
Read more >
Update Google AMP Cache URLs: The Ultimate How-to Guide
Wondering how to update Google AMP Cache URLs? You can stop googling. It's easy, but sorta unnecessary? Here's why—and how to do it....
Read more >
Hadoop DistributedCache is deprecated - Stack Overflow
I have no idea how to retrieve these cache files added using Job.addCacheFile(URI) . It does not work for me using the old...
Read more >
Deprecated List (Apache Curator 5.5.0-SNAPSHOT API)
It uses a better algorithm. org.apache.curator.framework.recipes.nodes.PersistentEphemeralNode. This has been replaced with the more general PersistentNode.
Read more >
signac (core) package documentation
Installation · Install with conda · Install with pip ; Command Line Interface · CLI Overview · clone ; API Reference · The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found