Download the PHP package adeshsuryan/next-cache-doctor without Composer

On this page you can find all versions of the php package adeshsuryan/next-cache-doctor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package next-cache-doctor

Next cache doctor

Next cache doctor reads a Next.js project on disk and reports which cache layers can still serve an old page after a write.

A database update, revalidateTag(), and a fresh server do not guarantee a fresh screen. The data cache, the full route cache, the client router cache, and a CDN can each keep their own copy. This package names the layer that was left behind.

It is a library and a command. It does not start Next.js, call Redis, or purge a CDN. The command finishes and exits, so a process manager such as PM2 is not part of the setup.

Current release: 0.2.5. Each release commit on main is an annotated git tag, v0.2.5, and an entry in CHANGELOG.md.

The unscoped npm name next-cache-doctor is taken by another package. Node installs use the scoped names below.

Install

Node.js 18 or newer.

npm / pnpm / yarn (recommended for Next.js)

JSR

Composer (Packagist)

Composer installs the files. Node runs them.

Use it from code

run(directory) returns { root, fileCount, layers, findings }. render(result) returns the text report. The package has no dependencies.

Use it from the shell

directory defaults to the current working directory. --json prints the same object run() returns. --fail-on-high exits 1 when any finding is high. Exit 2 means the path was refused or could not be read.

Example:

What a high finding means

Id What is wrong
tag-invalidation-leaves-router-cache revalidateTag ran, and the project never calls updateTag or router.refresh(). The browser can keep the old Server Component payload.
standalone-without-shared-cache output: "standalone" with cached data and no cacheHandler. Another instance can keep serving the tag you just invalidated.
revalidate-tag-max-with-use-cache revalidateTag(..., "max") appears in a project that also uses "use cache". That combination has failed production Server Actions with HTTP 500.

Medium and low findings are in docs/usage.md.

What the scan will not open

The file is read as text. It is not executed. A path that resolves outside the directory you passed is dropped.

Develop

pnpm test and yarn test run the same node --test script. There is no install step, because the package has no dependencies.

Releases

Versions follow semantic versioning. The git tag and package.json use the same number. History is in CHANGELOG.md.

Report a vulnerability through GitHub private security reporting, described in SECURITY.md.

License

MIT. Copyright 2026 Adesh Suryan. See LICENSE.


All versions of next-cache-doctor with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package adeshsuryan/next-cache-doctor contains the following files

Loading the files please wait ...