- How do I install doublethreedigital/static-cache-manager in Laravel?
- Install it with Composer using composer require doublethreedigital/static-cache-manager. Then follow the repository's installation steps for any service provider, configuration, or Control Panel setup. Because the package integrates with Statamic, make sure your app is a Laravel-based Statamic site if you need the Control Panel features.
- Does this package work with Statamic as well as Laravel?
- Yes. It is described as a cache management package for Laravel and Statamic sites, with a focus on warming, clearing, and serving static caches. Statamic sites built on Laravel can use it to keep pre-rendered pages fresh. Confirm your specific Statamic version in the package requirements.
- How do I clear the static cache from the Control Panel?
- Once installed, the package adds cache management controls to the Control Panel. You can use those controls to clear the site's static cache without running commands manually. The repository README is the best place to confirm the exact menu location and permissions.
- Can I warm the static cache after clearing it?
- The package covers warming, clearing, and serving static caches, so warming is part of its intended workflow. After clearing stale pre-rendered pages, you can trigger a warm step to regenerate them. See the package docs for the available Control Panel actions and configuration.
- How does static caching help with response times on busy sites?
- Static caching serves pre-rendered pages instead of rebuilding them on every request, which can cut response times on busy sites. This package helps manage that cache by warming and clearing it when content changes. That makes it easier to keep performance benefits without serving stale pages.
- Will clearing the cache happen automatically when content changes?
- The package is designed to help keep pre-rendered pages in sync with content changes, but the exact automation depends on how you wire it into your Statamic and Laravel workflows. You can clear or warm the cache from the Control Panel; check the docs for any event hooks or scheduled tasks.
- What Laravel versions are supported by this package?
- The exact Laravel version constraints are defined in the package's composer.json and repository documentation. Because Laravel and Statamic compatibility can change between releases, check the current support matrix before adding it to an existing project. For new projects, install it in a Laravel and Statamic version that matches the package requirements.
- Is there an Artisan command for clearing or warming the cache?
- The package's headline feature is clearing the static cache from the Control Panel, but it may also expose commands or underlying cache operations. Check the README for the exact Artisan commands and their signatures. If commands are available, they can be useful for deployments and scheduled jobs.
- Can I use this package in production?
- It is intended for real Laravel and Statamic sites that need to manage static caches and keep pre-rendered pages in sync. As with any cache tool, test clearing and warming behavior in staging before relying on it in production. Review permissions so only authorized Control Panel users can clear the cache.
- Are there alternatives to this package for static caching in Laravel or Statamic?
- Alternatives include Statamic's built-in static caching features and other Laravel cache or page-cache packages. This package stands out by adding Control Panel cache management for warming and clearing static caches. Compare the features you need, such as automatic invalidation, warming, and permissions, before choosing.