Skip to content

Commit 93ce057

Browse files
authored
Merge pull request #5 from discoverygarden/clear-cache
feat: add clear-cache command
2 parents 68f1516 + 5f49a5e commit 93ce057

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ ENV CLAMAV_PORT=3310
4040
ENV SOLR_HOME=/var/solr/data
4141
ENV SOLR_HOCR_PLUGIN_PATH=${SOLR_HOME}/contrib/ocrhighlighting/lib
4242

43+
COPY clear-cache /bin/clear-cache
44+
4345
RUN \
4446
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked,id=debian-apt-lists-$TARGETARCH$TARGETVARIANT \
4547
--mount=type=cache,target=/var/cache/apt/archives,sharing=locked,id=debian-apt-archives-$TARGETARCH$TARGETVARIANT \

clear-cache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
drush cr
4+
drush ev 'drupal_flush_all_caches();'

0 commit comments

Comments
 (0)