diff --git a/plugins/views_plugin_cache_time.inc b/plugins/views_plugin_cache_time.inc
index ac84b1c..934c88b 100644
--- a/plugins/views_plugin_cache_time.inc
+++ b/plugins/views_plugin_cache_time.inc
@@ -7,7 +7,9 @@ class views_plugin_cache_time extends views_plugin_cache {
   function option_definition() {
     $options = parent::option_definition();
     $options['results_lifespan'] = array('default' => 3600);
+    $options['results_lifespan_custom'] = array('default' => 0);
     $options['output_lifespan'] = array('default' => 3600);
+    $options['output_lifespan_custom'] = array('default' => 0);
 
     return $options;
   }
@@ -17,6 +19,7 @@ class views_plugin_cache_time extends views_plugin_cache {
     $options = array(60, 300, 1800, 3600, 21600, 518400);
     $options = drupal_map_assoc($options, 'format_interval');
     $options = array(-1 => t('Never cache')) + $options;
+    $options += array('custom' => t('Custom'));
 
     $form['results_lifespan'] = array(
       '#type' => 'select',
@@ -25,6 +28,18 @@ class views_plugin_cache_time extends views_plugin_cache {
       '#options' => $options,
       '#default_value' => $this->options['results_lifespan'],
     );
+    $form['results_lifespan_custom'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Seconds'),
+      '#size' => '25',
+      '#maxlength' => '30',
+      '#description' => 'Length of time in seconds raw query results should be cached',
+      '#default_value' => $this->options['results_lifespan_custom'],
+      '#process' => array('form_process_select','ctools_dependent_process'),
+      '#dependency' => array(
+        'edit-cache-options-results-lifespan' => array('custom'),
+      ),
+    );
     $form['output_lifespan'] = array(
       '#type' => 'select',
       '#title' => t('Rendered output'),
@@ -32,14 +47,40 @@ class views_plugin_cache_time extends views_plugin_cache {
       '#options' => $options,
       '#default_value' => $this->options['output_lifespan'],
     );
+    $form['output_lifespan_custom'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Seconds'),
+      '#size' => '25',
+      '#maxlength' => '30',
+      '#description' => 'Length of time in seconds rendered HTML output should be cached',
+      '#default_value' => $this->options['output_lifespan_custom'],
+      '#process' => array('form_process_select','ctools_dependent_process'),
+      '#dependency' => array(
+        'edit-cache-options-output-lifespan' => array('custom'),
+      ),
+    );
+  }
+
+  function options_validate(&$form, &$form_state) {
+    $custom_fields = array('output_lifespan','results_lifespan');
+    foreach ($custom_fields as $field) {
+      if ($form_state['values']['cache_options'][$field] == 'custom' && !is_numeric($form_state['values']['cache_options'][$field . '_custom'])) {
+        form_error($form[$field .'_custom'], t("Custom time values must be numeric"));
+      }
+    }
   }
 
   function summary_title() {
-    return format_interval($this->options['results_lifespan'], 1) . '/' . format_interval($this->options['output_lifespan'], 1);
+    $custom_fields = array('output_lifespan','results_lifespan');
+    foreach ($custom_fields as $field) {
+      ${$field} = $this->options[$field] == 'custom' ? $this->options[$field . '_custom'] : $this->options[$field];
+    }
+    return format_interval($results_lifespan, 1) . '/' . format_interval($output_lifespan, 1);
   }
 
   function cache_expire($type) {
-    if ($lifespan = $this->options[$type . '_lifespan']) {
+    $lifespan = $this->options[$type . '_lifespan'] == 'custom' ? $this->options[$type . '_lifespan_custom'] : $this->options[$type . '_lifespan'];
+    if ($lifespan) {
       $cutoff = REQUEST_TIME - $lifespan;
       return $cutoff;
     }
@@ -49,7 +90,8 @@ class views_plugin_cache_time extends views_plugin_cache {
   }
 
   function cache_set_expire($type) {
-    if ($lifespan = $this->options[$type . '_lifespan']) {
+    $lifespan = $this->options[$type . '_lifespan'] == 'custom' ? $this->options[$type . '_lifespan_custom'] : $this->options[$type . '_lifespan'];
+    if ($lifespan) {
       return time() + $lifespan;
     }
     else {
