Skip to content

Commit 84fa8fc

Browse files
pandafynemesifier
andauthored
[docs] Suggested to clear cache after updating OPENWISP_CONTROLLER_CONTEXT #1097
Closes #1097 --------- Co-authored-by: Federico Capoano <[email protected]>
1 parent 6dba01d commit 84fa8fc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/user/settings.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,23 @@ object.
273273
``OPENWISP_CONTROLLER_CONTEXT`` can be used to define system-wide
274274
configuration variables.
275275

276+
.. important::
277+
278+
After modifying the system-defined variables in
279+
``OPENWISP_CONTROLLER_CONTEXT``, clear the cache to ensure that
280+
devices, templates, and VPN receive the updated configuration values:
281+
282+
.. code-block:: bash
283+
284+
cd /opt/openwisp2
285+
python manage.py clear_cache
286+
287+
System-defined variables can be referenced in VPN, Template, and
288+
Config objects. When these variables are updated, existing cached
289+
configurations that depend on them do not automatically reflect the
290+
new values. Consequently, devices may continue using outdated
291+
configurations unless the cache is cleared.
292+
276293
For more information regarding how to use configuration variables in
277294
OpenWISP, refer to :doc:`variables`.
278295

0 commit comments

Comments
 (0)