Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
ce168fb3
Commit
ce168fb3
authored
Jan 18, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cache cleanup WIP
parent
c1328b66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
Cache.php
framework/caching/Cache.php
+3
-1
Dependency.php
framework/caching/Dependency.php
+1
-1
Logger.php
framework/logging/Logger.php
+2
-2
No files found.
framework/caching/Cache.php
View file @
ce168fb3
...
@@ -77,10 +77,12 @@ abstract class Cache extends ApplicationComponent implements \ArrayAccess
...
@@ -77,10 +77,12 @@ abstract class Cache extends ApplicationComponent implements \ArrayAccess
* For example:
* For example:
*
*
* ~~~
* ~~~
* $key =
Cache::
buildKey($className, $method, $id);
* $key =
$cache->
buildKey($className, $method, $id);
* ~~~
* ~~~
*
*
* @param string $id the
* @return string the cache key
* @return string the cache key
* @throws InvalidCallException if the method receives no parameter
*/
*/
public
function
generateKey
(
$id
)
public
function
generateKey
(
$id
)
{
{
...
...
framework/caching/Dependency.php
View file @
ce168fb3
...
@@ -42,7 +42,7 @@ abstract class Dependency extends \yii\base\Object
...
@@ -42,7 +42,7 @@ abstract class Dependency extends \yii\base\Object
*/
*/
public
function
getHasChanged
()
public
function
getHasChanged
()
{
{
return
$this
->
generateDependencyData
()
!=
$this
->
data
;
return
$this
->
generateDependencyData
()
!=
=
$this
->
data
;
}
}
/**
/**
...
...
framework/logging/Logger.php
View file @
ce168fb3
...
@@ -12,8 +12,8 @@ namespace yii\logging;
...
@@ -12,8 +12,8 @@ namespace yii\logging;
/**
/**
* Logger records logged messages in memory.
* Logger records logged messages in memory.
*
*
* When [[flushInterval]] is reached or when application terminates, it will
* When [[flushInterval
()
]] is reached or when application terminates, it will
* call [[flush]] to send logged messages to different log targets, such as
* call [[flush
()
]] to send logged messages to different log targets, such as
* file, email, Web.
* file, email, Web.
*
*
* Logger provides a set of events for further customization:
* Logger provides a set of events for further customization:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment