src/includes/classes/Core/Utils/DirCache.php
public function clear(string $primary_key, $sub_key = null, array $args = []): bool
    {
        if (!isset($sub_key)) {
            $dir = $this->dir; // App-specific.
            $dir .= '/'.$this->subPath($primary_key, null, $args);
            return $this->c::deleteDir($dir, true);
        } else {
            $file = $this->dir; // App-specific.
            $file .= '/'.$this->subPath($primary_key, $sub_key, $args);
            return @unlink($file);
        }
    }
public function clear(string $primary_key, $sub_key = null, array $args = []): bool
    {
        if (!isset($sub_key)) {
            $dir = $this->dir; // App-specific.
            $dir .= '/'.$this->subPath($primary_key, null, $args);
            return $this->c::deleteDir($dir, true);
        } else {
            $file = $this->dir; // App-specific.
            $file .= '/'.$this->subPath($primary_key, $sub_key, $args);
            return @unlink($file);
        }
    }
Clear cache value(s).

@since 170824.30708 Dir cache utils.

@param string          $primary_key Primary key.
@param string|int|null $sub_key     Sub-key (optional).
@param array           $args        Any behavioral args.

@return bool True on success.