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
*** system.install 2012-07-09 15:58:15.000000000 -0400 | |
--- system-patched.install 2012-01-24 17:21:30.000000000 -0500 | |
*************** function system_requirements($phase) { | |
*** 474,489 **** | |
); | |
} | |
$requirements['update status']['title'] = $t('Update notifications'); | |
- | |
- // Check that Drupal can issue HTTP requests. | |
- if (variable_get('drupal_http_request_fails', TRUE) && !system_check_http_request()) { |
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
Index: system.module | |
=================================================================== | |
--- modules/system/system.module (revision 8648) | |
+++ modules/system/system.module (working copy) | |
@@ -2238,7 +2238,7 @@ | |
} | |
else { | |
// File is not found in file system, so delete record from the system table. | |
- $delete->condition('filename', $file->filename); | |
+ //$delete->condition('filename', $file->filename); |
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
echo stats | nc 127.0.0.1 11211 |
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
drush vset update_check_disabled 1 -y && drush --simulate --pipe --no up | |
# see http://mark.shropshires.net/blog/list-all-projects-available-updates-using-drush |
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
<!-- load the jQuery and require.js libraries --> | |
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/vendor/jquery-1.7.2.js"></script> | |
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/require.js"></script> | |
<!-- load the Aloha Editor core and some plugins --> | |
<script src="http://cdn.aloha-editor.org/latest/lib/aloha.js" | |
data-aloha-plugins="common/ui, | |
common/format, | |
common/list, | |
common/link, |
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
<?php | |
$memcache = new Memcache; | |
$memcache->connect('127.0.0.1', 11211) | |
or die ("Could not connect to memcache server"); | |
$cells = ''; | |
$list = array(); | |
$allSlabs = $memcache->getExtendedStats('slabs'); | |
$items = $memcache->getExtendedStats('items'); | |
foreach($allSlabs as $server => $slabs) { | |
foreach($slabs as $slabId => $slabMeta) { |
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
// From http://www.opensourcery.com/blog/jessehs/what-was-query | |
// Devel Configuration -- Add this to | |
$conf['dev_query'] = TRUE; | |
<?php | |
global $queries; | |
$query = array_pop($queries); | |
dd($query, 'descriptive text about the query being printed out -- this one is logged to /tmp/drupal_debug.txt'); | |
dpm($query, 'descriptive text about the query being printed out -- this one is printed to the screen'); | |
?> | |
// Also: debug(strtr($query, $query->getArguments())); will show a query with arguments replaced in. It won't be quoted so it's not perfect but it integrates with the testing framework and doesn't require devel. (from CHX) |
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
drush php-eval '$m =memcache_connect("localhost", 11211); print_r($m->getStats());' |
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
ini_set('memory_limit','2048M'); | |
dpm(ini_get('memory_limit')); |
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
cache_clear_all('*', 'cache_field', TRUE); |