Skip to content

Instantly share code, notes, and snippets.

@glennpratt
Created January 25, 2012 16:37
Show Gist options
  • Select an option

  • Save glennpratt/1677122 to your computer and use it in GitHub Desktop.

Select an option

Save glennpratt/1677122 to your computer and use it in GitHub Desktop.
<?php
while (apci_auto_schedule_events_batch_continue()) {
// Cleanup
db_query('UPDATE queue SET expire = 0');
drupal_queue_cron_run();
}
<?php
use Drupal\Modules\ApciStore\Client;
try {
Client::singleton(Client::AUTHENTICATED);
}
catch (ErrorException $e) {
var_dump($e);
exit(1);
}
$ drush php-script ~/store_test.php
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment