flush: Flush site caches

Flush site caches.

Syntax

bin/zotonic flush [site_name]

Requirements and effects

Requires a running node; without a site argument the operation affects all sites.

Specify the site when diagnosing a local problem. Recheck the request after flushing. If this resolves stale output, investigate cache dependencies and keys rather than adding routine flushes to application code. It does not substitute for compiling changed Erlang source.

Example

bin/zotonic flush garden

Run commands from the Zotonic workspace root. Replace garden with your site name where applicable.