screen_cache.cgi - View/Removed Dada Mail cached sceens
screen_cache.cgi is located in the, dada/plugins directory of the Dada Mail distribution, under the name: screen_cache.cgi
See the feature overview on Dada Mail's Screen Cache:
http://dadamailproject.com/support/documentation-4_2_0/features-screen_cache.pod.html
This plugins allows you to view and remove any currently cached screens.
screen_cache.cgi should be installed into your dada/plugins directory. Upload the script and change it's permissions to 755.
Add this entry to the $ADMIN_MENU array ref:
{-Title => 'Screen Cache',
-Title_URL => $PLUGIN_URL."/screen_cache.cgi",
-Function => 'screen_cache',
-Activated => 0,
},
It's possible that this has already been added to $ADMIN_MENU and all you would need to do is uncomment this entry.
You can then visit the plugin in your web browser, via a URL, like this:
http://example.com/cgi-bin/dada/plugins/screen_cache.cgi
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 (c) 2010 Justin Simoni
All rights reserved.
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.