# gordalina/cachetool

CLI App and library to manage apc & opcache.

Repository: https://github.com/gordalina/cachetool
Canonical: https://ross.abutalabs.com/products/cachetool
Homepage: https://gordalina.github.io/cachetool
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-01-28T21:42:28+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 64, release rhythm 21, longevity 100
- inputs: {"age_days": 4363, "days_push": 217, "days_rel": 318, "gap_med": 338, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1827, forks 159 (observed 2026-08-28T04:05:41.515994+00:00)

## What it is
CacheTool is a PHP CLI application and library for managing APCu, OPcache, and the file status cache from the command line. It connects to a FastCGI server such as PHP-FPM (or runs via cli/web adapters) to clear caches and inspect statistics without reloading PHP or exposing web endpoints.

## Use cases
- clear opcache without reloading php-fpm
- invalidate apcu cache from the command line
- cron job for php cache invalidation
- view opcache statistics from the console
- clear php realpath cache via fastcgi
- manage php bytecode cache in deployment scripts

## When to choose
- you run PHP-FPM and need to flush OPcache/APCu without a web endpoint or service reload
- you want scriptable or cron-driven cache invalidation for PHP
- you need to inspect PHP cache statistics from a terminal or CI pipeline

## When to avoid
- you need cache management for non-PHP runtimes like Redis or Memcached
- you only need per-worker file status cache clearing across a whole FPM pool, since stat:clear affects only one worker
- you want a GUI or web dashboard for cache monitoring

## Facets
- artifact type: cli-tool
- maturity: active
- function: caching, cli, developer-tools
- domain: developer-tools, web-development, performance
- platform: php, cli
- tags: php, opcache, apcu, php-fpm, fastcgi, cache-invalidation, phar, command-line, docker, linux, macos

## Member repositories
- gordalina/cachetool (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:41.515994+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:19:25.471314+00:00, confidence not recorded.
  - readme: https://github.com/gordalina/cachetool (fetched 2026-08-28T04:05:41.515994+00:00, sha d265a65f939f)
  - homepage: https://gordalina.github.io/cachetool (fetched 2026-08-29T10:58:18.987964+00:00, sha d6c5ed05ef0d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
