diff --git a/docs/hosting/imgs/purge.png b/docs/hosting/imgs/purge.png new file mode 100644 index 0000000..e902b7b Binary files /dev/null and b/docs/hosting/imgs/purge.png differ diff --git a/docs/hosting/site-deployment.md b/docs/hosting/site-deployment.md index ad85673..043b102 100644 --- a/docs/hosting/site-deployment.md +++ b/docs/hosting/site-deployment.md @@ -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. diff --git a/docs/hosting/troubleshooting.md b/docs/hosting/troubleshooting.md index 97bd869..985526d 100644 --- a/docs/hosting/troubleshooting.md +++ b/docs/hosting/troubleshooting.md @@ -68,3 +68,17 @@ Adding a hash router in React: 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: + +## 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. \ No newline at end of file diff --git a/docs/internet-computer-hosting/imgs/purge.png b/docs/internet-computer-hosting/imgs/purge.png new file mode 100644 index 0000000..e902b7b Binary files /dev/null and b/docs/internet-computer-hosting/imgs/purge.png differ diff --git a/docs/internet-computer-hosting/site-deployment.md b/docs/internet-computer-hosting/site-deployment.md index 705eb6e..cadde7a 100644 --- a/docs/internet-computer-hosting/site-deployment.md +++ b/docs/internet-computer-hosting/site-deployment.md @@ -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. \ No newline at end of file +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. \ No newline at end of file diff --git a/docs/internet-computer-hosting/troubleshooting.md b/docs/internet-computer-hosting/troubleshooting.md index 9782618..a1a3155 100644 --- a/docs/internet-computer-hosting/troubleshooting.md +++ b/docs/internet-computer-hosting/troubleshooting.md @@ -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. \ No newline at end of file