Browse Source

cache cleanup WIP

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
ce168fb3c8
  1. 4
      framework/caching/Cache.php
  2. 2
      framework/caching/Dependency.php
  3. 4
      framework/logging/Logger.php

4
framework/caching/Cache.php

@ -77,10 +77,12 @@ abstract class Cache extends ApplicationComponent implements \ArrayAccess
* For example:
*
* ~~~
* $key = Cache::buildKey($className, $method, $id);
* $key = $cache->buildKey($className, $method, $id);
* ~~~
*
* @param string $id the
* @return string the cache key
* @throws InvalidCallException if the method receives no parameter
*/
public function generateKey($id)
{

2
framework/caching/Dependency.php

@ -42,7 +42,7 @@ abstract class Dependency extends \yii\base\Object
*/
public function getHasChanged()
{
return $this->generateDependencyData() != $this->data;
return $this->generateDependencyData() !== $this->data;
}
/**

4
framework/logging/Logger.php

@ -12,8 +12,8 @@ namespace yii\logging;
/**
* Logger records logged messages in memory.
*
* When [[flushInterval]] is reached or when application terminates, it will
* call [[flush]] to send logged messages to different log targets, such as
* When [[flushInterval()]] is reached or when application terminates, it will
* call [[flush()]] to send logged messages to different log targets, such as
* file, email, Web.
*
* Logger provides a set of events for further customization:

Loading…
Cancel
Save