Skip to content
/ lglib Public

Plugin containing common javascript, css and functions for other glFusion plugins

License

Notifications You must be signed in to change notification settings

glFusion/lglib

Repository files navigation

lglib Utility Plugin

This plugin provides some javascript and css files that are used by other plugins:

These scripts, especially the DHTML calendar, may not work correctly if they are loaded more than once, so this plugin becomes the single source for them.

Also provided are some common functions used across plugins.

Job Queue Processing

The job queue allows plugins to submit jobs with parameters to be processed later. Since jobs may take some time (hence the benefit of queuing them) they should not normally be processed along with the normal schedule task processor. There are a couple of options to improve performance.

  • If the main glFusion scheduled tasks are run by calling cron.php with page views, set Run Queue with scheduled tasks to No in the lgLib plugin configuration. Then call your_site/lglib/cron.php periodically to run the jobs.
  • If the main glFusion cron.php is called via command line only then set Run Queue with scheduled tasks to Yes and let the normal scheduled tasks include the job queue processing.

Internal Scheduled Task Processor

A new cron.php has been added that can be called either via URL (http://yoursite/lglib/cron.php?key=xxyyzz) or command line (php -q cron.php xxyyzz). The security key (xxyyzz) is configured in the plugin configuration and is optional but recommended. This cron executor takes over the system cron function to prevent any long-running tasks such as database backups from affecting site visitors.