-
New Drush Commands to Identify and Compress Large Images
https://github.com/agileadam/large-images-drush
I released a simple drush command file that provides two drush commands:
large-images-list
will list the largest images (by file size) found in a directory (and its subdirectories by default)large-images-compress
will compress (shrink file size of) images and update the associated record in Drupal’s file_managed table
-
When Did Drupal Cron Last Run?
Here’s a simple drush command to determine when Drupal cron (and node index cron) last ran:
1drush ev 'print "Last cron: ". format_interval((time() - variable_get("cron_last", "")) , 2) . " ago\nLast node index cron: " . format_interval((time() - variable_get("node_cron_last", "")) , 2) . " ago\n";'