Giter Site home page Giter Site logo

Comments (7)

rob006 avatar rob006 commented on June 11, 2024

Which cache backend you're using?

from yii.

alexius avatar alexius commented on June 11, 2024

Which cache backend you're using?

We use Redis.

I see that this issue is going to be resolve. Thanks

from yii.

alexius avatar alexius commented on June 11, 2024

There is another problem too - when we use the cache (php8+Yii+Redis), we get this problem
Fatal error: Uncaught CDbException: The table "tablename" for active record class "TablenameRecord" cannot be found in the database. in /srv/www/htdocs/.../framework/db/ar/CActiveRecord.php on lineย 2391 CDbException: The table "tablename" for active record class "TablenameRecord" cannot be found in the database. in /srv/www/htdocs/.../framework/db/ar/CActiveRecord.php on line 2391
When we cancel the use of the cache, the error disappears. Just comment out these lines in main.conf:
'cache'=>array( 'class'=>'CRedisCache', 'hostname'=> 'localhost', 'port'=>6379, 'database'=>1, ),
The table is existed in DB.

Why it happens and what can we do?

Thank you!

from yii.

marcovtwout avatar marcovtwout commented on June 11, 2024

@alexius We recently had a similar case in #4480 with unserialize(null) which turned out to be a problem in application code, not in framework code. Could you provide a bit more thorough reproducible sample code that demonstrates this issue so we can investigate?

There is another problem too (..)

Please create a new issue for this and fill out the required details.

from yii.

alexius avatar alexius commented on June 11, 2024

@marcovtwout I did.

from yii.

marcovtwout avatar marcovtwout commented on June 11, 2024

@wtommyw confirmed this issue is reproducable with CRedis and the correct fix by #4496

from yii.

marcovtwout avatar marcovtwout commented on June 11, 2024

Fixed by #4496

from yii.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.