File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change
1
+ [ ![ Code Climate] ( https://codeclimate.com/github/khoaofgod/phpfastcache/badges/gpa.svg )] ( https://codeclimate.com/github/khoaofgod/phpfastcache )
2
+
1
3
---------------------------
2
4
Simple Yet Powerful PHP Caching Class
3
5
---------------------------
Original file line number Diff line number Diff line change 11
11
// simple Caching with:
12
12
$ cache = phpFastCache ("redis " );
13
13
14
- if ($ cache ->fallback == true ) {
14
+ if ($ cache ->fallback === true ) {
15
15
echo " USE BACK UP DRIVER = " .phpFastCache::$ config ['fallback ' ]." <br> " ;
16
16
} else {
17
17
echo ' DRIVER IS GOOD <br> ' ;
Original file line number Diff line number Diff line change 33
33
34
34
// No caching for logined user
35
35
// can use with $_COOKIE AND $_SESSION
36
- if (isset ($ _SESSION ) && $ _SESSION ['logined ' ] == true ) {
36
+ if (isset ($ _SESSION ) && $ _SESSION ['logined ' ] === true ) {
37
37
$ caching = false ;
38
38
}
39
39
40
40
// ONLY ACCESS CACHE IF $CACHE = TRUE
41
- if ($ caching == true ) {
41
+ if ($ caching === true ) {
42
42
$ html = __c ("files " )->get ($ keyword_webpage );
43
43
}
44
44
You can’t perform that action at this time.
0 commit comments