KeepaliveLight



This package isn't going to appeal to many admins because a single homepage load every 14 minutes (the default) isn't going to cause a tremendous load. For those who use rely on keepalive in their extensions - this can save processor time and bandwidth. Remember, keepalive is present on every page with a login module while the user is not logged in!
(These results are system dependent, KeepaliveLight will reduce your overhead for keepalive requests)
Admin Keepalive request:
20 Database queries, 4.96 MB Memory usage, 4.85 KB Page size.
Admin KeepaliveLight request:
11 Database queries, 3.8 MB Memory usage, 0.79 KB Page size.
Site Keepalive request (standard install using the default template, every environment will differ - most will be more than this):
26 Database queries, 7.72 MB Memory usage, 4.42 KB Page size.
Site KeepaliveLight request:
9 Database queries, 5.69 MB Memory usage, 0.56 KB Page size.
One of my clients has users who must stay connected to a page for several hours. During peak times, this creates a significant load on the server with every user making these periodical requests. I created this as a way to drastically reduce the overhead of these requests. When I realized how sessions were being kept alive, I knew that I wanted to have a less expensive way, so I created one. Why burden your server with unnecessary queries and loading includes that will never be seen by anyone?
This package consists of a component and a plugin.
The component doesn't do much - in fact, it doesn't do anything - no queries, no output. It exists to do nothing. I didn't even bother to write the translation files because - it doesn't matter - nobody will see it. When a keepalive request is made, this component is called using the component template so no modules are loaded. It doesn't process content plugins, so you'll at least save the memory required to include those files.
The plugin does all of the hard work. It performs a pre-emptive override of the JhtmlBehavior class by pre-loading a real-time modified version of the existing class. The method is the same as is used in my CleanResponse plugin.
This plugin requires stream wrappers. If you enable the plugin and nothing happens, you may want to check your error log - the plugin will issue an error describing the failure.
Please note: This plugin doesn't add keepalive behavior to your site, it only modifies the existing behavior so that it is less resource intensive.
Version 1.4 resolves an issue with raw and json formatted pages.
Version 1.5 - Joomla 3.0 compatibility update
Version 1.6 - better Joomla 3.0 compatibility
4/26/2012 - Joomla 1.6/1.7 availability and support withdrawn.
All of my exten
Some hosting services disable (but do not remove) the stream_wrapper_register function within PHP. I can write a plugin to test if the function exists, but not if it works on your server.
Recovering from a server failure is easy.
1. Rename the plugin file to something else.
2. disable the plugin in the plugin manager.
3. rename the plugin file back to its original name.
4. uninstall the extension.
If you had contacted me, I could probably have saved you some time.
You should have contacted me to make a bug report before putting it in a review. The JED discourages this in review rule #4:
A review is not a location for requests for support, feature requests or bug reports. Support questions, feature requests, and bug reports should be taken to the Joomla! Forum or the developer of the extension.


