6

For some (all?) custom modules, under the options tab, there is a Prepare Content option.

Prepare Content Option

What does it do?

When should it be used? (Conversely, when should it not be used?)

What's its impact on site performance and/or dynamic content (non-static info that changes frequently such as sports scores, stock prices, etc.)?

1 Answer 1

7

Prepare Content will enable the onContentPrepare plugins event for the content of the module. So the custom html module's html content will go through the process of content plugins, similar to what happens on the articles.

This enables you to run content plugins (e.g. loadModule, email cloaking, etc) in your custom html modules.

I guess that the answer on when it should be used becomes obvious now. When you have content that requires to be processed by content Plugins.

Impact on performance: I don't have exact metrics on my hands, but as it involves extra processing, this adds up some extra tasks on the php side, although it should be minimum (while depending on what your content plugins are and do).

If you don't have content that needs content plugins, keep it disabled.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.