Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8a40036a
Commit
8a40036a
authored
Oct 31, 2009
by
Dries Buytaert
Browse files
- Patch
#615484
by yched: remove schema rebuild from field_cache_clear().
parent
a1652efe
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/field/field.module
View file @
8a40036a
...
...
@@ -426,21 +426,11 @@ function _field_extra_weights_pre_render($elements) {
}
/**
* Clear the cached information; called in several places when field
* information is changed.
* Clear the field info and field date caches.
*/
function
field_cache_clear
(
$rebuild_schema
=
FALSE
)
{
function
field_cache_clear
()
{
cache_clear_all
(
'*'
,
'cache_field'
,
TRUE
);
module_load_include
(
'inc'
,
'field'
,
'field.info'
);
field_info_cache_clear
();
// Refresh the schema to pick up new information.
// TODO : if db storage gets abstracted out, we'll need to revisit how and when
// we refresh the schema...
if
(
$rebuild_schema
)
{
$schema
=
drupal_get_schema
(
NULL
,
TRUE
);
}
}
/**
...
...
modules/field/modules/field_sql_storage/field_sql_storage.module
View file @
8a40036a
...
...
@@ -213,6 +213,7 @@ function field_sql_storage_field_storage_create_field($field) {
foreach
(
$schema
as
$name
=>
$table
)
{
db_create_table
(
$name
,
$table
);
}
drupal_get_schema
(
NULL
,
TRUE
);
}
/**
...
...
@@ -269,6 +270,7 @@ function field_sql_storage_field_storage_update_field($field, $prior_field, $has
}
}
}
drupal_get_schema
(
NULL
,
TRUE
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment