Screen Cache
- NAME
- Obtaining The Plugin
- DESCRIPTION
- Installation
- Using screen_cache.cgi as a cronjob
- COPYRIGHT
- LICENSE
NAME
screen_cache.cgi - View/Removed Dada Mail cached sceens
Obtaining The Plugin
screen_cache.cgi is located in the, dada/plugins directory of the Dada Mail distribution, under the name: screen_cache.cgi
DESCRIPTION
See the feature overview on Dada Mail's Screen Cache:
http://dadamailproject.com/support/documentation-7_4_1/features-screen_cache.pod.html
This plugins allows you to view and remove any currently cached screens.
Installation
This plugin can be installed during a Dada Mail install/upgrade, using the included installer that comes with Dada Mail. The below installation instructions go through how to install the plugin manually.
Change permissions of "screen_cache.cgi" to 755
The, screen_cache.cgi
plugin will be located in your, dada/plugins diretory. Change the script to, 755
Configure your .dada_config file
Now, edit your .dada_config
file, so that it shows the plugin in the left-hand menu, under the, Plugins heading:
First, see if the following lines are present in your .dada_config
file:
# start cut for list control panel menu
=cut
=cut
# end cut for list control panel menu
If they are, remove them.
Then, find these lines:
# {
# -Title => 'Screen Cache',
# -Title_URL => $PLUGIN_URL."/screen_cache.cgi",
# -Function => 'screen_cache',
# -Activated => 0,
# },
Uncomment the lines, by taking off the, "#"'s:
{
-Title => 'Screen Cache',
-Title_URL => $PLUGIN_URL."/screen_cache.cgi",
-Function => 'screen_cache',
-Activated => 0,
},
Save your .dada_config
file.
Using screen_cache.cgi as a cronjob
This plugin can also be used as a simple cronjob, to periodically flush all the cached screens.
All that needs to be done is to visit the screen periodically using the URL labeled, Manual Run URL: in the list control panel of this plugin.
A sample curl command, useful for a cronjob is listed in the textbox labeled, curl command example (for a cronjob):
Running this cronjob every hour, or day, or week, should be plenty.
You may also just use the, rm
command directly, but this has the possibility of removing the wrong directory!
COPYRIGHT
Copyright (c) 1999 - 2014 Justin Simoni All rights reserved.
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.