Cache folder grown very very fast

Here is better solution, you can store your profiler data in redis thanks to SncRedisBundle, they have implemented profiler_storage.

They have also added TTL, so your profiler data can expire automatically.

First configure your snc_redis client in config.yml

snc_redis:
    clients:
        default:
            type: predis
            alias: default
            dsn: redis://localhost

Then add profiler storage in config_dev.yml

snc_redis:
    profiler_storage:
        client: default
        ttl: 86400

Check to see if your environment is running in dev (development) mode, if so make sure it is on prod (production). In dev mode alot proccessing is done for debugging reasons and this is not needed for your clients.

if you wish to disable the profiler you can do it In: app/config/config_dev.yml

web_profiler:
     toolbar: true
     only-exceptions: true
     intercept_redirects: false

There is the option in config_dev.yml

framework:
    profiler: { only_exceptions: true }

It was false, now all going normal.

Tags:

Symfony