open-index/open-npm huggingface dataset:
npm package: @fiftyfivetech/strapi-plugin-cache-purge
Description: Strapi Manage Redis Cache from Dashboard
Author: Ganesh Agrawal
Latest version: 1.0.2

# Strapi Plugin Cache Purge

Manage Redis Cache from Dashboard

### How to Config

- Create a REST endpoint called `https://strapi_url/api/cache` in strapi with
  - `GET` method to return all cached keys
  - `DELETE` method to delete or clear cache

#### Fetch Keys Request

```ts
// GET http://localhost:1337/api/cache

// Response
interface CacheKeyApiResponse {
  keys: string[];
}
```

#### Clear Cache Request

```ts
// DELETE http://localhost:1337/api/cache

// Response
// Http Status 200 OK
```
npm package: @fiftyfivetech/strapi-plugin-preview-button
Description: Strapi Preview Data Before Publish It
Author: Ganesh Agrawal
Latest version: 1.0.1

# Strapi Plugin Preview Button

Add a preview button on Strapi CMS.

## How To

- Add preview-button plugin using

```bash
npm install @fiftyfivetech/strapi-plugin-preview-button
```

- Add these env variables in Strapi

```text
STRAPI_ADMIN_PREVIEW_URL=https://frontend_url.com/preview
STRAPI_ADMIN_PREVIEW_URL_SECRET=preview_secret
```

> Make sure your content must have an unique `slug` field. Based on that this plugin will works. If slug is not available you can able to use `documentId` field.

## How it works?

It will add a preview button for every content in content manager. On click it will open `https://frontend_url.com/preview?secret=preview_secret&slug=homepage&collectionName=api::page.page&documentId=x45tnYUnai&isDraft=true`.

You can able to easily intercept this call at your frontend (Next.js) application and read query params to fetch perform action and fetch draft mode content and show a live preview to end user.