Yii Framework Forum: Cactiverecord Vs. Coutputcache Vs. Ccache - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cactiverecord Vs. Coutputcache Vs. Ccache Rate Topic: -----

#1 User is offline   Lupin Sansei 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 36
  • Joined: 30-December 10

Posted 11 December 2012 - 12:56 AM

Hi,

I find it quite confusing and actually annoying that the three classes all handle the caching duration differently:
CCache says 0 means "does not expire" (in my book the correct interpretation)
CActiveRecord says 0 means "disable caching"
COutputCache says 0 means "remove cached content"

How does this behaviour make any sense at all?

I understand that changing it now is probably not possible any more. I can't understand why I cannot specify "cache indefinitely" for CActiveRecord or COutputCache, a dependency should normally take care of expiration.

Thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users