Skip to content

Commit

Permalink
include section about dandi cache table
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Kanzer authored and Aaron Kanzer committed Oct 22, 2024
1 parent 6bc3c70 commit 7dea59b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
21 changes: 21 additions & 0 deletions docs/64_dandi_archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,24 @@ src="../img/user_metadata.png"
alt="user_metadata"
style="width: 60%; height: auto; display: block; margin-left: auto; margin-right: auto;"/>
<br/><br/>

## Addition of the Cache Table for Metrics

On the DANDI homepage, metrics exist for how many users, and how much data is stored in the Archive.

<br/><br/>
<img
src="../img/dandi_stats.png"
alt="dandi_stats"
style="width: 60%; height: auto; display: block; margin-left: auto; margin-right: auto;"/>
<br/><br/>

In order to not constantly query for those values, DANDI uses a [Django cache table](https://docs.djangoproject.com/en/5.1/topics/cache/#creating-the-cache-table). This table must be separately initialized.

This can be done via the CLI command of:

```shell
heroku run python manage.py createcachetable dandi_cache_table --app <insert-app-here>
```

You may not see updated stats immediately, as the stats are cached for 12 hours at a time.
4 changes: 1 addition & 3 deletions docs/66_dandi_neuroglancer.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Work In Progress

## Setting up Cloudfront
## Setting up Cloudfront for Private Assets



Expand Down
Binary file added docs/img/dandi_stats.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7dea59b

Please sign in to comment.