Skip to content

Commit 5852162

Browse files
committed
set cache refreshing cronjob to 30 mins in rudolf
1 parent e3ec62a commit 5852162

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

docker-config/rudolf/Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ RUN cd /var/www/rudolf && composer install --no-scripts && \
3939
# RUN apk add --update moreutils
4040

4141
# Install cronjob for cache refreshing:
42-
COPY ./refreshCache /etc/periodic/hourly/.
4342
COPY ./refreshCache /refreshCache
4443
RUN chmod a+rwx /refreshCache
45-
RUN chmod a+rwx /etc/periodic/hourly/refreshCache
44+
45+
# Running refresh of Cache takes 5 mins:
46+
RUN ( crontab -l ; echo "*/30 * * * * /refreshCache" ) | crontab -
4647

4748
EXPOSE 8990
4849
COPY ./start.sh /start.sh

infos/fdptordf_workflow.txt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
(1) http://next.openspending.org/admin/
2+
(2) Run external hooks
3+
4+
https://openspending.readthedocs.io/en/latest/developers/api/
5+
6+
(3) Clear Cache in Rudolf
7+
8+
(4) Get all datasets for the Search:
9+
http://eis-openbudgets.iais.fraunhofer.de/search/package
10+
{"name":"testfdp6__3ba36","status":"ok","model":{"aggregates":{"haushaltkonto.sum":{"label":"","measure":"haushaltkonto","ref":"haushaltkonto.sum","function":"sum"},"_count":{"label":"Facts","measure":null,"ref":"_count","function":"count"}}
11+
12+
13+
(5) Use the Id of the datasets given by the Search to show the dataset in the viewer
14+
http://eis-openbudgets.iais.fraunhofer.de/viewer/<name>
15+
http://eis-openbudgets.iais.fraunhofer.de/viewer/testfdp6__3ba36
16+

0 commit comments

Comments
 (0)