CM Tooltip (CMTG) - Troubleshooting - Managing Large Glossaries
Managing Large Glossaries - Basics
While some glossaries are relatively small - a few to tens of terms - some may grow pretty big - to couple hundreds or even thousands.
In this cases the performance hit caused by the parser may become significant, even when the plugin is optimized.
Ways to solve the problem
Thankfully there are always things one can do to improve the performance by some degree.
- Better server/CPU
Everybody knows that some computers are faster than the others, the same applies to the web servers. Usually the cheapest, shared hosting won't run on the best machines, so if you're planning to create a huge glossary, you may need to consider spending a bit more money on your own hosting (VPS or even a dedicated server) with a lot of RAM, fast disks and good processors.
- Remove related articles
One of the things which the plugin does that can have a significant hit on performance is the related articles functionality. If you're not using it, or can't afford the performance loss, you can follow the guide on this page and turn off the feature.
- Install a cache plugin
If your content doesn't change often (or not at all) it's unnecessary to parse the content in search for the tooltips over and over again. Using a caching plugin which will store the rendered HTML and serve it to the users can save the server a lot of load, as it won't need to make unnecessary calls to the database and process the PHP parsing.
We recommend using the W3TC plugin and to request help from someone who is knowledgeable in configuring this plugin for the best performance.
- Enable caching in the CM Tooltip Glossary Plugin
Last but not least, you can enable the internal caching of the CM Tooltip Glossary, which tries to reuse the information once stored instead of obtaining them all the time.
Warning! Please keep in mind that it's best to only enable the plugins internal cache after you've made all of the changes on the glossary on your site.
Go to Admin Dashboard → CM Tooltip → Settings → General Settings - Performance & Debug and check the box as in the following example:
- Use External Cache services
There are several services which offer improved caching such as CloudFlare or built in server solution such as warm cache solution that speed up the page serving. They replace your site in terms of serving the pages on your site and caching them every set amount of time. This will of course reduce the amount of time the plugin parser is used.