- How do I install duncanmcclean/static-cache-manager?
- Install the package with Composer using composer require duncanmcclean/static-cache-manager. Then follow the repository README for any publish or setup steps, and clear your Laravel caches. In a Statamic application, make sure the addon is discovered and enabled as documented.
- Which Laravel versions does this static cache manager support?
- Check the package's composer.json and README for the exact Laravel and PHP version constraints. Because it integrates with the Control Panel and static caching, supported Laravel versions are tied to the Statamic and Laravel versions your application runs. Test on your current Laravel version before upgrading.
- How do I clear the static cache from the Laravel Control Panel?
- Use the package's Control Panel interface to trigger a static cache clear. It provides a simple UI action instead of requiring manual filesystem or Artisan commands. After clearing, cached pages are regenerated as visitors request them or when you warm the cache.
- Can I warm the static cache after a deployment?
- Yes, the package is designed to warm cached pages from its interface. Warming pre-generates static pages so visitors get fast responses after a deploy or content update. You can combine this with your deployment workflow to keep the cache fresh.
- How do I configure the static cache manager?
- Configuration is typically handled through the package's config file or Control Panel settings, depending on what the README documents. Publish the config if the package provides one, then adjust cache paths or options to match your static caching setup. Keep the defaults unless you need to customize cache locations or behavior.
- Does this package work with Statamic static caching?
- The package targets static caching in a Laravel application and is commonly used alongside Statamic's static cache. It adds Control Panel actions for warming, clearing, and refreshing cached pages. Confirm the exact integration details for your Statamic version in the README.
- How can I test static cache clearing in my Laravel app?
- In a local or staging environment, generate static cache entries and then use the Control Panel action to clear them. Verify that the cached files are removed and that pages regenerate correctly on the next request. Avoid running destructive cache tests directly against production.
- Is this package safe to use in production?
- It is intended to help keep production sites fast and content fresh by managing static cache from the Control Panel. As with any cache tool, test on staging first and make sure your team knows when to clear or warm the cache. Review user permissions so only trusted users can trigger cache actions.
- What are alternatives to this package for managing Laravel static cache?
- You can manage static caching with built-in Artisan commands, custom deployment scripts, or other Laravel and Statamic cache packages. This package stands out by putting warm, clear, and refresh actions directly in the Control Panel. Choose based on whether you prefer a UI-driven workflow or command-line automation.
- How is duncanmcclean/static-cache-manager maintained?
- Maintenance follows the repository's release history and issue tracker on GitHub. Check the README and Packagist for the latest version and supported Laravel and PHP constraints. For production use, pin a version and review changelogs before upgrading.