Linux 软件免费装
Banner图

Lightsail CDN Cache Manager

开发者 bytecorestack
更新时间 2026年6月19日 20:06
PHP版本: 7.2 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

lightsail cache manager lightsail cdn cdn cache aws lightsail

下载

1.0 1.0.0 1.1.0

详情介绍:

Lightsail CDN Cache Manager is a focused WordPress cache manager built around one job — Lightsail cache clear, done right. If your site runs behind an Amazon Lightsail content delivery network (CDN) distribution, this plugin puts you in full control of that cache: a manual clear, an auto cache clear the moment you publish, or a scheduled cache clear on a recurring timer — all from your WordPress admin, no AWS console required. Use it to manually purge your Lightsail CDN cache with one click, fire an auto cache clear the instant you publish or update content, or set a scheduled cache clear so your cache invalidates itself on its own — daily, weekly, monthly, or at custom intervals. Why Use This Plugin? If you've wished WordPress cache management for Lightsail was as simple as clicking a button, this is it: Key Features Manual Cache Clearing Perfect For Requirements Documentation Full setup instructions and documentation available at https://bytecorestack.com/plugins/lightsail-manager

安装:

From WordPress Admin
  1. Go to Plugins > Add New
  2. Search for "Lightsail CDN Cache Manager"
  3. Click "Install Now" and then "Activate"
  4. Configure your AWS credentials in wp-config.php
  5. Go to Settings > Lightsail Manager to manage your cache
Manual Installation
  1. Download the plugin ZIP file
  2. Upload to /wp-content/plugins/ directory
  3. Extract the ZIP file
  4. Activate the plugin through WordPress admin
  5. Configure AWS credentials (see Configuration section)
Configuration Add these constants to your wp-config.php file: define('AWS_ACCESS_KEY_ID', 'your_access_key_here'); define('AWS_SECRET_ACCESS_KEY', 'your_secret_key_here'); define('AWS_DEFAULT_REGION', 'us-east-1'); define('LIGHTSAIL_DISTRIBUTION_NAME', 'your_distribution_name'); Finding Your Distribution Name:
  1. Log in to AWS Lightsail console
  2. Go to Networking > CDN distributions
  3. Find your distribution and copy its name Creating AWS Credentials:
  4. Go to AWS IAM console
  5. Create a new user or use existing one
  6. Attach Lightsail permissions
  7. Generate access keys
  8. Add keys to wp-config.php

屏幕截图:

  • Auto-clear settings for automatic cache invalidation
  • Scheduled cache clearing with live countdown timer
  • Configuration panel showing AWS status

升级注意事项:

1.1.0 The plugin has been renamed to "Lightsail CDN Cache Manager". Your settings, schedule, and AWS configuration are unaffected — only the display name changed. This release also adds a "Test Connection" button. 1.0 Initial release.

常见问题:

How do I clear my AWS Lightsail CDN cache from WordPress?

Install and activate this plugin, add your AWS credentials to wp-config.php, then go to Settings > Lightsail Manager and click "Clear CDN Cache Now." No need to log in to the AWS console at all.

What is AWS Lightsail CDN?

AWS Lightsail CDN is a content delivery network service from Amazon Web Services that caches your website content at edge locations worldwide, making your site faster for visitors globally.

Do I need an AWS account?

Yes, you need an AWS account with an active Amazon Lightsail distribution and appropriate IAM permissions.

How do I get my AWS credentials?

You can create AWS credentials (Access Key ID and Secret Access Key) from the AWS IAM console. Make sure the credentials have permissions to manage Lightsail distributions (see the Configuration section above for the exact actions required).

How do I know if my AWS credentials are set up correctly?

Use the built-in "Test Connection" button on the Configuration tab. It verifies your access key, secret key, and distribution name against the AWS Lightsail API without clearing your cache, and tells you exactly what's wrong if something fails.

Is this plugin secure?

Yes, the plugin uses AWS Signature Version 4 for secure authentication. Your credentials are stored in wp-config.php (not in the database) and are never exposed in the admin interface.

What's the difference between Amazon Lightsail and Amazon CloudFront?

Amazon Lightsail CDN is the simplified content delivery network bundled with Lightsail distributions, while CloudFront is AWS's standalone, more advanced CDN. This plugin is built specifically for Lightsail CDN distributions — if you're using CloudFront instead, you'll need a CloudFront-specific plugin.

Can I automatically clear the cache when I publish or update a post?

Yes. Enable Auto-Clear in the plugin and choose which post types (posts, pages, products, or any custom post type) should trigger an automatic cache invalidation whenever they're published or updated.

Can I schedule cache clears at specific times?

Yes! The plugin supports interval, weekly, and monthly scheduling with customizable times. You can choose the exact time and day/date for cache clearing, with a live countdown to the next run.

What happens if cache clearing fails?

The plugin will display an error message with details about what went wrong. Common issues include incorrect credentials or an incorrect distribution name — use "Test Connection" to diagnose this before it happens.

Will this slow down my site?

No, cache clearing operations happen in the background and don't affect your site's performance. The plugin only communicates with AWS when you manually clear cache, when content is updated (if auto-clear is enabled), or during scheduled clears.

Does this work with WooCommerce?

Yes. WooCommerce registers its products as a custom post type, so you can enable auto-clear for products to keep your storefront's CDN cache fresh whenever inventory or product details change.

Can I clear cache for specific pages only?

Currently, the plugin clears the entire CDN cache. Selective/partial cache clearing may be added in future versions.

Does this work with multisite?

The plugin is compatible with WordPress multisite installations. Each site can have its own cache clearing schedule.

更新日志:

1.1.0 1.0