Add cache inclalidation for Chronological
This commit is contained in:
16
deploy.sh
16
deploy.sh
@@ -93,20 +93,4 @@ echo "Deploying luxtools to: $TARGET/"
|
||||
|
||||
rsync "${RSYNC_ARGS[@]}" "$SRC_DIR/" "$TARGET/"
|
||||
|
||||
# Invalidate DokuWiki cache by touching conf/local.php
|
||||
# This forces DokuWiki to rebuild JavaScript/CSS bundles
|
||||
CONF_LOCAL="$(dirname "$TARGET")/../../conf/local.php"
|
||||
if [[ -f "$CONF_LOCAL" ]]; then
|
||||
if ((DRY_RUN)); then
|
||||
echo "(dry-run) Would touch $CONF_LOCAL to invalidate cache"
|
||||
elif touch "$CONF_LOCAL" 2>/dev/null; then
|
||||
echo "Cache invalidated (touched conf/local.php)"
|
||||
else
|
||||
echo "Note: Cannot touch conf/local.php (permission denied)."
|
||||
echo " Run 'touch conf/local.php' on the server to clear cache."
|
||||
fi
|
||||
else
|
||||
echo "Note: conf/local.php not found at expected path, skip cache invalidation."
|
||||
fi
|
||||
|
||||
echo "Done."
|
||||
|
||||
Reference in New Issue
Block a user