Commit 74e9ce76 authored by ram4nd's avatar ram4nd

Remove arguments which can be safely dropped, as they are identical to the default value.

parent 312e0eda
......@@ -19,7 +19,7 @@ function commerce_omniva_locations() {
}
if (!empty($data)) {
cache_set('commerce_omniva_locations_data', $data, 'cache');
cache_set('commerce_omniva_locations_data', $data);
}
}
}
......
  • Actually this line should be (or even better to use A Unix timestamp):

    if (!empty($data)) {
       cache_set('commerce_omniva_locations_data', $data, 'cache', CACHE_TEMPORARY); //ET CHANGED
    }

    Because otherwise, it's never updated after initialize. I had problem with that. List never changed, now it will change after clear cache.

    https://api.drupal.org/api/drupal/includes%21cache.inc/function/cache_set/7.x

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment