Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
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
Yeray Santana Hualde
syncEnrollments
Commits
23d57425
Commit
23d57425
authored
Aug 01, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove item caching from cache manager.
parent
5f3d40b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
cache.php
system/cache.php
+4
-11
No files found.
system/cache.php
View file @
23d57425
...
...
@@ -9,13 +9,6 @@ class Cache {
*/
public
static
$drivers
=
array
();
/**
* All of the items retrieved by the cache drivers.
*
* @var array
*/
public
static
$items
=
array
();
/**
* Get a cache driver instance. If no driver name is specified, the default
* cache driver will be returned as defined in the cache configuration file.
...
...
@@ -66,9 +59,9 @@ class Cache {
*/
public
static
function
get
(
$key
,
$default
=
null
,
$driver
=
null
)
{
if
(
is
set
(
static
::
$items
[
$driver
][
$key
]
))
if
(
is
_null
(
$driver
))
{
return
static
::
$items
[
$driver
][
$key
]
;
$driver
=
Config
::
get
(
'cache.driver'
)
;
}
if
(
is_null
(
$item
=
static
::
driver
(
$driver
)
->
get
(
$key
)))
...
...
@@ -76,7 +69,7 @@ class Cache {
return
is_callable
(
$default
)
?
call_user_func
(
$default
)
:
$default
;
}
return
static
::
$items
[
$driver
][
$key
]
=
$item
;
return
$item
;
}
/**
...
...
@@ -91,7 +84,7 @@ class Cache {
*/
public
static
function
remember
(
$key
,
$default
,
$minutes
,
$driver
=
null
)
{
if
(
!
is_null
(
$item
=
static
::
get
(
$key
)))
if
(
!
is_null
(
$item
=
static
::
get
(
$key
,
null
,
$driver
)))
{
return
$item
;
}
...
...
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