Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable CakePHP cache for cron image (CO-2047)
skoranda committed Jan 13, 2021
1 parent ea6ee22 commit 18645be
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions comanage-registry-base/comanage_utils.sh
@@ -26,6 +26,20 @@ else
OUTPUT=/dev/null
fi

##########################################
# Configure CakePHP cache disable
# Globals:
# COMANAGE_REGISTRY_DIR
# OUTPUT
# Arguments:
# None
# Returns:
# None
##########################################
function comanage_utils::configure_cache_disable() {
sed -i -e '/Cache.disable/ s+/++g' "$COMANAGE_REGISTRY_DIR/app/Config/core.php"
}

##########################################
# Configure CakePHP debug level
# Globals:
@@ -298,6 +312,8 @@ function comanage_utils::exec_cron() {

comanage_utils::registry_clear_cache

comanage_utils::configure_cache_disable

comanage_utils::tmp_ownership

comanage_utils::deploy_crontab

0 comments on commit 18645be

Please sign in to comment.