Skip to content

Commit

Permalink
Merge pull request #121 from FleekHQ/purge-cache
Browse files Browse the repository at this point in the history
purge cache content
  • Loading branch information
gpuente authored May 31, 2021
2 parents 079fa53 + a506556 commit 8150dfa
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 1 deletion.
Binary file added docs/hosting/imgs/purge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/hosting/site-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,18 @@ Deleting a site is an irreversible action so proceed with caution.

To delete a site, go to the settings of the site and navigate to General > Danger Zone. A modal will then appear with a warning and instructions to delete the site.

## Purging Site Cache
### How to Manually Purge Cache
If your website is not reflecting the latest changes, you might have a cache-refresh issue. A previous cache layer might be being held by BunnyCDN, and therefore you’re seeing the website from the cache layer, not the most updated version.

**Fortunately, purging the cache manually fixes this!** and you can do it right from the Fleek app if needed.

Under the **hosting** section in Fleek, find the affected site, and visit the **Settings section** in the sites details. Navigate to **Build and deploy** sub-menu, and find the site management and Purge Cache feature.

![](imgs/purge.png)

All it takes is a click of the button! Fleek will trigger a manual cache purge on BunnyCDN, and after a minute, you can recheck that your site is displaying the latest cache version.

## Advanced Settings

When building your site, we make some assumptions about system dependencies and tools. If you are using a standard Node.js environment this should be enough. There are some cases though where you might want to use custom tools not provided by default in a standard Node.js distribution. For these cases, you can configure advanced settings. To do this, go to your site overview, click Settings, and scroll down to the Advanced Settings section.
Expand Down
14 changes: 14 additions & 0 deletions docs/hosting/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,17 @@ Adding a hash router in React: <https://reactrouter.com/web/api/HashRouter>
If no file is found, IPFS will search for a file called `ipfs-404.html` in the requested path. This file can be used for showing 404 errors or redirecting.
See the following blog post for more information:
<https://blog.ipfs.io/2020-06-26-go-ipfs-0-6-0/>

## My site is not reflecting the latest changes! (Cache issue)

If your website is not reflecting the latest changes, you might have a cache-refresh issue.

A previous cache layer might be being held by BunnyCDN, and therefore you’re seeing the website from the cache layer, not the most updated version.

**Fortunately, purging the cache manually fixes this!** and you can do it right from the Fleek app if needed.

Under the **hosting** section in Fleek, find the affected site, and visit the **Settings section** in the sites details. Navigate to **Build and deploy** sub-menu, and find the site management and Purge Cache feature.

![](imgs/purge.png)

All it takes is a click of the button! Fleek will trigger a manual cache purge on BunnyCDN, and after a minute, you can recheck that your site is displaying the latest cache version.
Binary file added docs/internet-computer-hosting/imgs/purge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion docs/internet-computer-hosting/site-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,16 @@ services:

Deleting a site is an irreversible action so proceed with caution.

To delete a site, go to the settings of the site and navigate to General > Danger Zone. A modal will then appear with a warning and instructions to delete the site.
To delete a site, go to the settings of the site and navigate to General > Danger Zone. A modal will then appear with a warning and instructions to delete the site.

## Purging Site Cache
### How to Manually Purge Cache
If your website is not reflecting the latest changes, you might have a cache-refresh issue. A previous cache layer might be being held by BunnyCDN, and therefore you’re seeing the website from the cache layer, not the most updated version.

**Fortunately, purging the cache manually fixes this!** and you can do it right from the Fleek app if needed.

Under the **hosting** section in Fleek, find the affected site, and visit the **Settings section** in the sites details. Navigate to **Build and deploy** sub-menu, and find the site management and Purge Cache feature.

![](imgs/purge.png)

All it takes is a click of the button! Fleek will trigger a manual cache purge on BunnyCDN, and after a minute, you can recheck that your site is displaying the latest cache version.
14 changes: 14 additions & 0 deletions docs/internet-computer-hosting/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,17 @@ The public directory is always relative to the base directory. So to use the `pu
* This occurs when the number of builds across all of our customers exceeds our current network capacity. When this happens builds will be queued as they come in and be deployed when other builds finish
* Team queue
* This occurs when the number of total builds across all of your sites exceeds the build limit. You can increase your concurrent builds by upgrading your account or by contacting support. If you have this issue, you can cancel other builds that may not be as important.

## My site is not reflecting the latest changes! (Cache issue)

If your website is not reflecting the latest changes, you might have a cache-refresh issue.

A previous cache layer might be being held by BunnyCDN, and therefore you’re seeing the website from the cache layer, not the most updated version.

**Fortunately, purging the cache manually fixes this!** and you can do it right from the Fleek app if needed.

Under the **hosting** section in Fleek, find the affected site, and visit the **Settings section** in the sites details. Navigate to **Build and deploy** sub-menu, and find the site management and Purge Cache feature.

![](imgs/purge.png)

All it takes is a click of the button! Fleek will trigger a manual cache purge on BunnyCDN, and after a minute, you can recheck that your site is displaying the latest cache version.

0 comments on commit 8150dfa

Please sign in to comment.