mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-18 19:41:15 +02:00
Spaces for tabs
This commit is contained in:
@@ -31,9 +31,9 @@ Example logic using APC:
|
||||
$data = apc_fetch('expensive_data');
|
||||
if (!$data)
|
||||
{
|
||||
// data not in cache, do expensive call and save for later use
|
||||
$data = get_expensive_data();
|
||||
apc_store('expensive_data', $data);
|
||||
// data not in cache, do expensive call and save for later use
|
||||
$data = get_expensive_data();
|
||||
apc_store('expensive_data', $data);
|
||||
}
|
||||
|
||||
print_r($data);
|
||||
|
Reference in New Issue
Block a user