Commit 74e9ce76 authored by ram4nd's avatar ram4nd
Browse files

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() { ...@@ -19,7 +19,7 @@ function commerce_omniva_locations() {
} }
if (!empty($data)) { 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.

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