Manage files in the cache
Clear cache
You may need to clear the cache if the content on the source has updated or the data is not displaying correctly.
The cache can be cleared selectively or cleared completely.
The clearing time depends on the number of files and can take up to 15 minutes. A request to clear the cache can be made no more than once per minute.
Clear cache selectively
-
In the Control Panel, on the top menu, click Products and select CDN.
-
Open the CDN resource page → Cache Management tab.
-
Open the Clear cache card.
-
Select the cleaning type Selective.
-
Enter the paths to the files you want to delete from the cache. Enter a relative path (without the resource name), with
*
or/
at the beginning of the path. The*
character replaces any number of characters. Specify each path on a separate line, no more than 10 paths in one request.
You can specify a specific file, directory, or group of files with the same extension in a single path; to do so, use the query syntax.Example of a request:
/path/to/file.jpg
*/directory/*.jpgThe query will delete the
file.jpg file
in the specified directory, as well as alljpg
files that are contained in thedirectory
and its child folders. -
Click Clear cache. It takes about a minute for a clear request to be generated. When the request is generated, clearing will begin.
Clear cache completely
- In the Control Panel, on the top menu, click Products and select CDN.
- Open the CDN resource page → Cache Management tab.
- Open the Clear cache card.
- Select the cleaning type Full.
- Click Clear all cache.
- Enter the name of the CDN resource.
- Click Clear all cache. It takes about a minute to generate a clear request. When the request is generated, clearing will begin.
Preload cache
Preloading is required for files between 200 MB and 5 GB in size. You can make a request to preload the cache no more than once per minute.
-
If you want to update the files in the cache, first delete the current cached versions, to do this clear the cache.
-
In the Control Panel, on the top menu, click Products and select CDN.
-
Open the CDN resource page → Cache Management tab.
-
Open the Preload Cache card.
-
Enter the paths to the files to be preloaded. Enter a relative path (without the resource name), with
*
or/
characters at the beginning of the path. The*
character replaces any number of characters. Specify each path on a separate line, no more than 10 paths in one request.
You can specify a specific file, directory, or group of files with the same extension in a single path; to do so, use the query syntax.Example of a request:
/path/to/file.jpg
*/directory/*.jpgThe query will preload the
file.jpg file
in the specified directory, as well as alljpg
files that are contained in thedirectory
and its child folders. -
Click Download Cache.
Query syntax
Use syntax to remove only specific files from the cache or load only specific files into the cache.