Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / website / messages / PLMC14.md
diff --git a/website/messages/PLMC14.md b/website/messages/PLMC14.md
new file mode 100644 (file)
index 0000000..149ec8f
--- /dev/null
@@ -0,0 +1,27 @@
+---
+layout: default
+title: Message detail for PLMC14
+toc: false
+---
+
+Detail for Marionette Collective message PLMC14
+===========================================
+
+Example Message
+---------------
+
+    No block supplied to synchronize on cache 'my_cache'
+
+Additional Information
+----------------------
+
+When using the Cache to synchronize your own code across agents or other plugins you have to supply a block to synchronise.
+
+Correct usage would be:
+
+    Cache.setup(:customer, 600)
+    Cache(:customer).synchronize do
+       # update customer record
+    end
+
+This error is raise when the logic to update the customer record is not in a block as in the example