diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-10-06 03:51:00 +0500 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-10-06 03:51:11 +0500 |
| commit | 1a2cf7bd2358c0d252d7c653ec5370a036a8b8ba (patch) | |
| tree | eeb1578010f831b105479293147eea3a55fbcb1b | |
| parent | 15df71d03bf5e12167ce11b89d6f3d8a4f4809aa (diff) | |
submodules/timer_uncache: Clear cache by default
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
| -rw-r--r-- | README.md | 2 | ||||
| -rwxr-xr-x | bot.zsh | 4 | ||||
| -rw-r--r-- | submodules/timer_uncache.zsh | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -69,7 +69,7 @@ Options: -m <mode> Cache mode, default: normal -t <secs> Cache expiration time, max: 1000, default: 300 secs -s <secs> Sleep duration time, max: 100, default: 10 secs - -c Clear cache automatically + -c Do not clear cache automatically -q Do not print logs -i <secs> Telegram Bot API connetion timeout, max: 5, default: 5 secs -e <secs> Image Boards API connetion timeout, max: 5, default: 5 secs @@ -112,7 +112,7 @@ then sleep_time=${OPTARG} ;; (c) - clear_cache=0 + no_clear=0 ;; (q) no_logs=0 @@ -165,7 +165,7 @@ then "\n -m <mode>\tCache mode, default: normal" \ "\n -t <secs>\tCache expiration time, max: 1000, default: 300 secs" \ "\n -s <secs>\tSleep duration time, max: 100, default: 10 secs" \ - "\n -c\t\tClear cache automatically" \ + "\n -c\t\tDo not clear cache automatically" \ "\n -q\t\tDo not print logs" \ "\n -i <secs>\tTelegram Bot API connetion timeout, max: 5, default: 5 secs" \ "\n -e <secs>\tImage Boards API connetion timeout, max: 5, default: 5 secs" \ diff --git a/submodules/timer_uncache.zsh b/submodules/timer_uncache.zsh index cd889d7..f8d9e5c 100644 --- a/submodules/timer_uncache.zsh +++ b/submodules/timer_uncache.zsh @@ -2,7 +2,7 @@ # Copyright (C) 2024-2025 Danil Lisin # SPDX-License-Identifier: Apache-2.0 -if [[ -z "${clear_cache}" ]] +if [[ -n "${no_clear}" ]] then return 0 fi |
