# Trident Templates

> Ready-to-use configuration templates for popular platforms, frameworks, and e-commerce systems.

Ready-to-use configuration templates for popular platforms, frameworks, and e-commerce systems. Copy a template to `/etc/trident/trident.toml` and adjust the backend address to match your setup.

## E-Commerce Platforms

| Platform | Cache Tags | Key Features |
|----------|-----------|--------------|
| [Magento 2](https://docs.qoliber.com/docs/trident/templates/ecommerce#magento-2) | `X-Magento-Tags` | GraphQL caching, backend protection, static/media rules |
| [WooCommerce](https://docs.qoliber.com/docs/trident/templates/ecommerce#woocommerce) | `X-Cache-Tags` | Cart/checkout bypass, logged-in user detection |
| [Shopware 6](https://docs.qoliber.com/docs/trident/templates/ecommerce#shopware-6) | `X-Cache-Tags` | Storefront and API rules |
| [PrestaShop](https://docs.qoliber.com/docs/trident/templates/ecommerce#prestashop) | `X-Cache-Tags` | Module-aware rules |
| [Sylius](https://docs.qoliber.com/docs/trident/templates/ecommerce#sylius) | `X-Cache-Tags` | Symfony-based rules |
| [Shopify Headless](https://docs.qoliber.com/docs/trident/templates/ecommerce#shopify-headless) | `X-Cache-Tags` | Storefront API caching |
| [Medusa.js](https://docs.qoliber.com/docs/trident/templates/ecommerce#medusajs) | `X-Cache-Tags` | API-first caching |
| [Saleor](https://docs.qoliber.com/docs/trident/templates/ecommerce#saleor) | `X-Cache-Tags` | GraphQL caching |

## CMS Platforms

| Platform | Cache Tags | Key Features |
|----------|-----------|--------------|
| [WordPress](https://docs.qoliber.com/docs/trident/templates/cms#wordpress) | `X-Cache-Tags` | WooCommerce support, ESI, multi-language vary |
| [Drupal](https://docs.qoliber.com/docs/trident/templates/cms#drupal) | `X-Drupal-Cache-Tags` | Native cache tag integration |
| [Strapi](https://docs.qoliber.com/docs/trident/templates/cms#strapi) | `X-Cache-Tags` | Headless CMS API caching |
| [Ghost](https://docs.qoliber.com/docs/trident/templates/cms#ghost) | `X-Cache-Tags` | Blog-optimized rules |
| [Payload CMS](https://docs.qoliber.com/docs/trident/templates/cms#payload-cms) | `X-Cache-Tags` | API route caching |

## Web Frameworks

| Framework | Language | Key Features |
|-----------|----------|--------------|
| [Laravel](https://docs.qoliber.com/docs/trident/templates/frameworks#laravel) | PHP | Livewire bypass, Sanctum auth, Vite assets |
| [Symfony](https://docs.qoliber.com/docs/trident/templates/frameworks#symfony) | PHP | ESI support, profiler bypass |
| [Django](https://docs.qoliber.com/docs/trident/templates/frameworks#django) | Python | Admin bypass, session handling |
| [FastAPI](https://docs.qoliber.com/docs/trident/templates/frameworks#fastapi) | Python | API endpoint caching |
| [Ruby on Rails](https://docs.qoliber.com/docs/trident/templates/frameworks#ruby-on-rails) | Ruby | Turbo/Stimulus support |
| [Spring Boot](https://docs.qoliber.com/docs/trident/templates/frameworks#spring-boot) | Java | Actuator bypass, API caching |
| [Next.js](https://docs.qoliber.com/docs/trident/templates/frameworks#nextjs) | JavaScript | ISR support, `_next` asset caching |
| [Nuxt.js](https://docs.qoliber.com/docs/trident/templates/frameworks#nuxtjs) | JavaScript | `_nuxt` asset caching, API rules |

## Quick Start

1. Pick your platform template
2. Copy the configuration:

    ```bash
    sudo cp trident.toml /etc/trident/trident.toml
    ```

3. Update the backend address to point to your application
4. Restart Trident:

    ```bash
    sudo systemctl restart trident
    ```

<Admonition type="tip" title="Customizing Templates">
These templates provide sensible defaults. You should review the cache rules and adjust TTLs based on your specific needs. See the [Configuration](https://docs.qoliber.com/docs/trident/configuration) page for all available options.
</Admonition>
