-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Cake 2 configs to init Caching later.
Addresses the question raised in #7.
- Loading branch information
Showing
4 changed files
with
82 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<h2>Dump of all Cache Configs</h2> | ||
|
||
<?php | ||
// Make sure debug is on so output is actually printed. | ||
if (!Configure::read('debug')) { | ||
Configure::write('debug', 1); | ||
} | ||
|
||
// Loop over all defined Caches and dump the config for each. | ||
foreach (Cache::configured() as $c) { | ||
echo '<h3>' . h($c) . '</h3>'; | ||
debug(Cache::config($c)); | ||
} |
This file contains 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