Adding cache mechanism for bbcode. Improving cache to use apc.