Created
January 25, 2012 16:37
-
-
Save glennpratt/1677122 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 | |
| while (apci_auto_schedule_events_batch_continue()) { | |
| // Cleanup | |
| db_query('UPDATE queue SET expire = 0'); | |
| drupal_queue_cron_run(); | |
| } |
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 | |
| use Drupal\Modules\ApciStore\Client; | |
| try { | |
| Client::singleton(Client::AUTHENTICATED); | |
| } | |
| catch (ErrorException $e) { | |
| var_dump($e); | |
| exit(1); | |
| } |
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
| $ drush php-script ~/store_test.php | |
| $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment