Questions tagged [symfony-cache]

The tag is for Symfony Cache Component which was introduced in Symfony 3.1

Symfony Cache Component https://symfony.com/doc/current/components/cache.html was introduced in Symfony 3.1

24 questions
1
vote
1 answer

Advanced using of the PSR-6 cache in Symfony

I need to move the data from a relation database into a Redis store for further manipulations. I'm using the Symfony PSR-16 cache implementation with the Redis adapter for this and have 2 types of items in my cache pool: The first cache item type…
super.t
  • 2,526
  • 7
  • 32
  • 51
1
vote
1 answer

Symfony cache warm up error on production

It seems that only on the production server warming up the cache causes an error. This is how I try to warm up the cache: $ rm -rf app/cache/* $ chmod -R 777 app/cache/ $ php app/console doctrine:cache:clear-metadata --env=prod $ php -r…
BigJ
  • 1,990
  • 2
  • 29
  • 47
1
vote
2 answers

Symfony "app_dev.php" cache not clearing

I'm working with symfony and followed the doc about using app_dev.php to work without worrying about the cache... But it doesn't work for me. I'm often forced to clear_cache to see my changes in twig templates ! My app_dev.php : $loader =…
Jeremy Belolo
  • 4,319
  • 6
  • 44
  • 88
1
vote
0 answers

Major slowdown after upgrade to Symfony 3.1/3.2 (related to system cache)

After updating my application from Symfony 3.0.6 to Symfony 3.1.0, I noticed a major slowdown (more than double the time to load a single page) in development (xdebug disabled). The same can be observed with Symfony 3.2.0. This led me to believe…
Andrea Sprega
  • 2,221
  • 2
  • 29
  • 35
0
votes
0 answers

Run Symfony command with Cronjob Kubernetes

Each minute, I have a K8S Cronjob who run Symfony command. My problem is the huge time my pod warmup Symfony cache before execute the command : 56s ... I search a solution for stock the cache in docker container but i can't execute cache:warmup…
Axel
  • 46
  • 2
0
votes
1 answer

Symfony save partial information in cache

With Symfony, I want to use Cache Manager (FilesystemCache) for save my entities. I did this : $find = $this->entityManager->getRepository(User::class) ->getSingleResult([ 'whereId' => $id, ]); dump($find); //…
Gaylord.P
  • 1,539
  • 2
  • 24
  • 54
-1
votes
1 answer

Symfony: var/cache/prod/pools is growing infinitely, what is causing this? How to avoid it?

I deployed a website running Symfony 4.4. This website has very low traffic, but run automatic tasks (commands) several times per hour. It uses Doctrine to connect to a MySQL 5.6 database. After one day, the size of the var/cache/prod/pools…
A.L
  • 10,259
  • 10
  • 67
  • 98
-2
votes
1 answer

Symfony cache:clear problem: No session available

The problem is very simple. The applications works as expected, no problems, sessions work, etc. But when I try to clear the cache: bin/console c:c // Clearing the cache for the dev environment with debug true …
-2
votes
2 answers

Symfony file permission issues

I have a Symfony 4 project on Fedora 28 (a Linux Distribution), Apache 2.4.33 and PHP 7.2.5. All of that is hosted on a VPS (Virtual Private Server). And it's the first time that I deploy a Symfony project online (I was using before that the Symfony…
Lyes
  • 11
  • 8
1
2