Before using a CFL or LED bulb in a totally enclosed fixture, you should consult the product packaging. Because totally enclosed fixtures do not allow air to circulate around the lamp, it causes heat to build up, which can lead to performance issues.
Though CFLs and LED bulbs do not produce nearly as much heat as incandescents, they are more sensitive to heat, which can affect their performance. Some of the components cannot withstand high heat, unless specifically engineered to do so. The excess heat that is created in a totally enclosed fixture can cause the light output to be diminished, the bulb to appear to "dim" more quickly, and a shorter bulb lifetime. The most effective way at this time to ensure that the particular product you are interested in purchasing is designed to withstand high-heat applications, is to check the packaging or contact the manufacturer directly. ENERGY STAR certification requires high heat testing for bulbs that are marketed for use in enclosed or recessed fixtures.