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+
13---------------------------
24Simple Yet Powerful PHP Caching Class
35---------------------------
Original file line number Diff line number Diff line change 1111// simple Caching with:
1212$ cache = phpFastCache ("redis " );
1313
14- if ($ cache ->fallback == true ) {
14+ if ($ cache ->fallback === true ) {
1515 echo " USE BACK UP DRIVER = " .phpFastCache::$ config ['fallback ' ]." <br> " ;
1616} else {
1717 echo ' DRIVER IS GOOD <br> ' ;
Original file line number Diff line number Diff line change 3333
3434// No caching for logined user
3535// can use with $_COOKIE AND $_SESSION
36- if (isset ($ _SESSION ) && $ _SESSION ['logined ' ] == true ) {
36+ if (isset ($ _SESSION ) && $ _SESSION ['logined ' ] === true ) {
3737 $ caching = false ;
3838}
3939
4040// ONLY ACCESS CACHE IF $CACHE = TRUE
41- if ($ caching == true ) {
41+ if ($ caching === true ) {
4242 $ html = __c ("files " )->get ($ keyword_webpage );
4343}
4444
You can’t perform that action at this time.
0 commit comments