cache:clear

Delete feature cache entries (total or partial) and remove broken symlinks from products.


Usage

splent cache:clear [--namespace NAMESPACE] [--feature FEATURE] [--yes]

Examples

Clear the entire feature cache:

splent cache:clear

Clear only a specific namespace:

splent cache:clear --namespace splent_io

Clear all entries for a specific feature (all versions):

splent cache:clear --feature splent_feature_auth

Clear a specific feature within a namespace:

splent cache:clear --namespace splent_io --feature splent_feature_auth

Options

Option Description
--namespace Restrict deletion to the specified namespace (e.g. splent_io).
--feature Delete all cache entries (editable + all versions) for this feature name.
--yes Skip the confirmation prompt.

Scope resolution

When multiple options are combined, --feature takes priority and is applied within the --namespace if provided. When no options are given, the entire cache is cleared.

Options used Scope deleted
(none) Entire .splent_cache/features/
--namespace splent_io All entries under splent_io/
--feature splent_feature_auth All splent_feature_auth* entries across all namespaces
--namespace splent_io --feature splent_feature_auth All splent_feature_auth* entries under splent_io/

Description

Deletes the target cache entries and then scans all products for broken symlinks pointing to the deleted paths, removing them automatically.

This operation is irreversible. Run cache:status or cache:usage first to confirm what will be removed. Use cache:prune instead if you only want to remove entries that are no longer referenced by any product.


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es