Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Aug 21, 2024
1 parent 1545415 commit 48826b7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/src/qsa-api/endpoints/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,28 @@ $ curl "http://localhost:5000/api/projects/my_project/styles" \
}
}'
````

## Cache

| Method | URL | Description |
|---------|--------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| GET | `/api/projects/{project}/cache` | Return metadata about the cache |
| POST | `/api/projects/{project}/cache/reset` | Clear cached data and reset cache configuration |

Example:

```` shell
$ curl "http://localhost:5000/api/projects/my_project/cache"
{
"valid":true,
"storage":"filesystem"
}
````

<div class="warning">
Reset cache

When a QGIS project is created manually without QSA, the cache is not
initialized. This method allows to create the MapProxy configuration file
accordingly.
</div>

0 comments on commit 48826b7

Please sign in to comment.