Commit 3d33d998 authored by Antoine Tenart's avatar Antoine Tenart

Add a cron to flush cache every day at midnight

parent e388057f
<?php
if (!isset ($argc))
exit ();
$_SERVER['SCRIPT_FILENAME']='/var/www/ae/www/ae2/phpcron';
$topdir = $_SERVER['SCRIPT_FILENAME'].'/../';
require_once ($topdir.'include/site.inc.php');
$site = new site ();
echo '==== '.date ('d/m/Y').' ====\n';
require_once ($topdir.'include/entities/news.inc.php');
nouvelle::expire_cache_content ();
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment