Skip to content

Commit

Permalink
add doc and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Nov 18, 2022
1 parent 8700023 commit 6ce173b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ CHANGELOG
2.91.1+dev (XXXX-XX-XX)
-----------------------

**Improvments**

- Cache API v2 Detail endpoints and themes list endpoint
- Sensitive areas are now computed with buffered geometries with settings SENSITIVE_AREA_INTERSECTION_MARGIN. Use ST_INTERSECTS on it is faster.
- Zoning informations are now cached until instance or zoning is updated.

**New feature**

- Separate application and API v2 cache, ability to purge them with command or via admin


2.91.1 (2022-11-18)
-----------------------
Expand Down
11 changes: 10 additions & 1 deletion docs/install/advanced-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2878,16 +2878,25 @@ recipients emails (``ADMINS``, ``MAIL_MANAGERS``) and email server configuration

ALERT_REVIEW = False


If True, it sends a message to managers (MAIL_MANAGERS) whenever an object which can be published has been changed to review mode.

Email configuration takes place in ``/opt/geotrek-admin/var/conf/custom.py``, where you control
recipients emails (``ADMINS``, ``MAIL_MANAGERS``) and email server configuration.


**Custom SQL**

::
Put your custom SQL in a file name ``/opt/geotrek-admin/var/conf/extra_sql/<app name>/<pre or post>_<script name>.sql``

* app name is the name of the Django application, eg. trekking or tourism
* ``pre_``… scripts are executed before Django migrations and ``post_``… scripts after
* script are executed in INSTALLED_APPS order, then by alphabetical order of script names


**Manage Cache**
::
* You can purge application cache with command or in admin interface

::
sudo geotrek clearcache --cache_name default --cache_name fat --cache_name api_v2

0 comments on commit 6ce173b

Please sign in to comment.