Skip to content

You can use this system if you still have old AMP content after changing the AMP content.

License

Notifications You must be signed in to change notification settings

enteresanlikk/amp-cache-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMP CACHE UPDATE

You can use this system if you still have old AMP content after changing the AMP content. With this system, you can update the cache of your AMP pages.

How to use it?

The system is currently in full use. What you need to do;

  1. Take the project to your computer.

    git clone https://github.com/enteresanlikk/amp-cache-update.git

    or

    You can download the project directly.

  2. Import the Private.pem file (RSA). If this file does not exist, the system will not work!

    You can visit the link https://developers.google.com/amp/cache/update-cache to create an RSA key.

  3. Move the project to the place where you will run it. (Example: htdocs, etc.)

  4. Enter the necessary information in the project. You can update information from this file.

     $domain = "https://example.com"; //Your domain.
    
     $urls = [
         "https://example.com/category/example-url/amp",
         "https://example.com/category/example-1-url/amp",
         "https://example.com/category/example-2-url/amp"
     ]; //Links pages to be updated in the AMP cache. Pages must be AMP. This variable must be sent as an array.
    
     $pemFileName = "website"; //Your private.pem filename that belongs to your site. If you want, you can write the file with the extension (.pem).
    
  5. Run the project. Just start your Apache server.

  6. Go to your project from the browser. For the links you enter, you will be generated AMP cache update links. Go to these links one by one.

  7. The AMP cache update link you went to should return the result OK. Otherwise, the problem has occurred, and the page you are going to will have a problem.(Usually private key error.)

About

You can use this system if you still have old AMP content after changing the AMP content.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages