Symfony - как очистить кэш
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Symfony - как очистить кэш
Переходим в корневую папку сайта и выполняем:
# bin/console cache:clear // Clearing the cache for the prod environment with debug true [OK] Cache for the "prod" environment (debug=true) was successfully cleared.
Кэш в директории var/cache/prod/ будет очищен.
Другие используемые команды для чистки кэша в Symfony:
cache:clear Clears the cache cache:pool:clear Clears cache pools cache:warmup Warms up an empty cache doctrine:cache:clear-collection-region Clear a second-level cache collection region. doctrine:cache:clear-entity-region Clear a second-level cache entity region. doctrine:cache:clear-metadata Clears all metadata cache for an entity manager doctrine:cache:clear-query Clears all query cache for an entity manager doctrine:cache:clear-query-region Clear a second-level cache query region. doctrine:cache:clear-result Clears result cache for an entity manager