# Assertivlogix Simple Cache

Lightweight WordPress caching plugin that caches pages and local CSS/JS files and can optionally minify assets.

<img src="screenshot-1.svg" alt="Assertivlogix Simple Cache - Admin Screenshot" style="max-width:800px;border:1px solid #ddd;padding:8px;background:#fff;">

## About

This plugin creates cached HTML pages and cached minified copies of local CSS and JS files under the uploads folder (by default `wp-content/uploads/wp-cache/`).

### Features
- Full-page HTML caching for logged-out visitors
- Optional caching/minification of local CSS and JS assets
- Advanced CSS optimization pipeline:
  - Remove unused selectors (per cached page) and duplicate declarations
  - Combine local stylesheets into a single bundle with optional async delivery
  - Auto-extract or manually inline critical CSS while deferring the rest
- Optional lazy-loading of `<img>` elements via `loading="lazy"` when the setting is enabled

## Compatibility
- Not compatible with server-level/base caching stacks provided by some hosts (e.g., Varnish, LiteSpeed cache at server layer).
- We do not provide support when the plugin runs on servers that enforce their own full-page cache because conflicts with `ob_start()` output buffering can lead to stale pages or double caching.

## Screenshot
The screenshot above shows the plugin settings page (Enable cache, Cache assets, Minify CSS, Minify JS) and a Clear Cache control.

If you'd like to use a real screenshot image (PNG/JPG), place a file named `screenshot-1.png` or `screenshot-1.jpg` in the plugin root and update the README image tag to point to that filename (or replace `screenshot-1.svg` with the new filename).

## How to replace placeholder with a real screenshot
1. Save your admin screenshot as `screenshot-1.png` (recommended size ~ 800x400).
2. Put `screenshot-1.png` in the plugin folder `wp-simple-cache/`.
3. Edit this `README.md` if you want to change the displayed filename (optional).

## Quick test steps
1. Activate the plugin in WP Admin.
2. Go to the 'Simple Cache' menu in the admin left menu.
3. Toggle the settings and Save Settings.
4. Visit the frontend as a non-logged-in user and inspect source for cached asset URLs.

---

This README and the placeholder screenshot were added automatically by the developer tools to help demonstrate the plugin UI in the repository.
