Last active
March 31, 2017 21:10
-
-
Save angelxmoreno/dc67a2ba3f2ddaf501813583f7e5e19b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function longDbCall() | |
{ | |
$cache_key = $this->cache->generateKey('longDbCall'); | |
return $this->cache->remember($cache_key, function () { | |
return $this->__longDbCall(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment