[TYPO3-dev] clearing cache of one page on a specific date
John Angel
johnange at gmail.com
Fri Mar 16 17:34:24 CET 2007
Hi Steffen,
> i just think about a possibility to do that.
> Casestudy: You have a newsrecord, that has a start and a stop date.
> Now this won't work if at this dates the cache isn't deleted.
I did it with the cron job.
$timeOutTime = time();
$midnightTime = mktime
(0,0,0,date('m',$timeOutTime),date('d',$timeOutTime),date('Y',$timeOutTime));
$rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
'uid',
'pages',
"starttime=$midnightTime OR endtime=$midnightTime"
);
...
Regards,
John
More information about the TYPO3-dev
mailing list