Skip to content

Commit

Permalink
Merge pull request #94 from e3betht/fix_comparisons
Browse files Browse the repository at this point in the history
Correcting comparisons with Booleans so they use identical operators.
  • Loading branch information
khoaofgod committed Apr 4, 2015
2 parents fe8cf7c + 3fc09a6 commit 7714e3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Code Climate](https://codeclimate.com/github/khoaofgod/phpfastcache/badges/gpa.svg)](https://codeclimate.com/github/khoaofgod/phpfastcache)

---------------------------
Simple Yet Powerful PHP Caching Class
---------------------------
Expand Down
2 changes: 1 addition & 1 deletion example2.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// simple Caching with:
$cache = phpFastCache("redis");

if($cache->fallback == true) {
if($cache->fallback === true) {
echo " USE BACK UP DRIVER = ".phpFastCache::$config['fallback']." <br>";
} else {
echo ' DRIVER IS GOOD <br>';
Expand Down
4 changes: 2 additions & 2 deletions examples/6.cache_whole_website.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@

// No caching for logined user
// can use with $_COOKIE AND $_SESSION
if(isset($_SESSION) && $_SESSION['logined'] == true) {
if(isset($_SESSION) && $_SESSION['logined'] === true) {
$caching = false;
}

// ONLY ACCESS CACHE IF $CACHE = TRUE
if($caching == true ) {
if($caching === true ) {
$html = __c("files")->get($keyword_webpage);
}

Expand Down

0 comments on commit 7714e3b

Please sign in to comment.