Reputation: 95
I'm using Drupal 7. i changed the value of one custom field from the site, with a sql query, but
when i trying to edit the node in the admin, the value of the field was the old one.
what can i do to fix this issue, without clearing the cache from the admin panel?
Upvotes: 3
Views: 3480
Reputation: 76
You can try to clear cache after modification via SQL
query:
// Clear field cache
cache_clear_all("field:node:$nid", 'cache_field');
Or for other entities
cache_clear_all("field:$entity_type:$entity->id", 'cache_field');
Upvotes: 6