api-platform / docs

API Platform documentation
https://api-platform.com/docs/
166 stars 1.08k forks source link

feat(performance): update Souin setup & enable Cache-Control public in docs #1969

Closed laurent-bientz closed 2 months ago

laurent-bientz commented 2 months ago

Hello,

This pull request updates Souin setup in docs, see https://github.com/dunglas/frankenphp/issues/976#issuecomment-2296050761

dunglas commented 2 months ago

By the way, the config can now be simplified:

Before:

{
    order cache before rewrite
    ...
    cache {
        api {
            souin
        }
    }
}

After:

{
    cache
    # ...
}

# ...
laurent-bientz commented 2 months ago

@dunglas I followed your recommendations, tell me if everything is ok

dunglas commented 2 months ago

Thank you!!