Support => cpg1.6 plugins => cpg1.6.x Support => cpg1.6 plugin contributions => Topic started by: ron4mac on July 07, 2020, 02:22:07 pm

Title: Theme caching plugin
Post by: ron4mac on July 07, 2020, 02:22:07 pm
Here is a CPG 1.6.x plugin that will cache home, category and album pages for non logged in users. Set cache expiration time in plugin config. Themes must be enabled for caching by creating a writeable "cache" folder in the theme folder.

The plugin should greatly reduce database accesses and increase performance for public facing galleries.

Updated: V1.0 adds a <!-- CACHED --> tag to the bottom of the page when delivered from cache (for support purposes).

Title: Re: Theme caching plugin
Post by: idosha on July 30, 2020, 03:35:56 am
Thank you very much for this plugin. It has helped me greatly reduce my server load.

Question, what will happen if the "cache" folder doesn't exist? Is the plugin just ignored then?

Is there no way to make the "cache" folder inside the plugin folder or a "temp" folder? I see it being a nuisance to have to remember to create a "cache" folder when activating new themes.