C
C
cyberlog2020-02-22 01:29:15
css
cyberlog, 2020-02-22 01:29:15

Yii2 showed other people's data in the edit form, is it a cache?

I'm handing over a yii2 project, and the customer sends me a screen of a glitch, where he has, in the form of editing personal data, the data of another account that I created earlier (for a test).
Those. there is someone else's avatar and what is in the database - Name, Surname, Phone - all the data is someone else's.
I freaked out from this, the only thought is that yii2 pulled it out of the cache.

'cache' => [
            'class' => 'yii\caching\FileCache',


The cache is enabled in the config. But why have I never noticed this glitch?
And it's definitely not a browser cache, because. I was the only one with access to this account.
In general, the question of who came across how to fix it correctly?
It's a pity to turn off the cache, maybe just turn it off for some actions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2020-02-22
@cyberlog

Data cached php yii cache/flush-all
Other commands

cache/flush                      Flushes given cache components.
    cache/flush-all                  Flushes all caches registered in the system.
    cache/flush-schema               Clears DB schema cache for a given connection component.
    cache/index (default)            Lists the caches that can be flushed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question