Closed (won't fix)
Project:
UC Node Checkout
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2008 at 09:40 UTC
Updated:
12 Feb 2012 at 00:32 UTC
...
foreach ($form_values['restricted_fields'] as $key => $value) {
if ($value) {
$fields[] = $key;
}
}
...
variable_set('uc_node_checkout_'. $form_values['type'] .'_restrictions', $fields);
Why not place this info in DB?
Comments
Comment #1
rszrama commentedIt could be placed in the DB... it just wasn't really necessary and was easy to do this way.
Comment #2
rszrama commentedComment #3
tr commentedNothing wrong with keeping these as variables. These values are very static, so it seems more efficient to keeps them in the variable table cache. But if you think storing them in the DB could be more performant, please post a patch and some benchmarks.