summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrfay2017-04-22 22:06:55 (GMT)
committerJason Flatt2017-04-22 22:06:55 (GMT)
commitc4226e68b9ea593fb25f512d6a726a07dfb45854 (patch)
treecd40148f324b9369aba5d4b301175ef634fa06ee
parent6f0dbc74c70bde4aa522405f53e2801dc01f91e7 (diff)
Issue #2577823 by rfay: Fields on privatemsg do not show until cache clear
-rwxr-xr-xprivatemsg.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/privatemsg.module b/privatemsg.module
index 8c9ecf2..ac72c85 100755
--- a/privatemsg.module
+++ b/privatemsg.module
@@ -1984,6 +1984,7 @@ function _privatemsg_send($message) {
module_invoke_all('privatemsg_message_insert', $message);
field_attach_insert('privatemsg_message', $message);
+ cache_clear_all("field:privatemsg_message:{$message->mid}", 'cache_field');
} catch (Exception $exception) {
$transaction->rollback();