[TYPO3-dev] clearing cache of one page on a specific date
Steffen Kamper
steffen at dislabs.de
Fri Mar 16 18:34:28 CET 2007
"John Angel" <johnange at gmail.com> schrieb im Newsbeitrag
news:mailman.77769.1174062899.21067.typo3-dev at lists.netfielders.de...
> 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
>
ah yes, this was that i thought of.
But anyway the cron hast to look for each CE has start- or stopdate and
clear that page.
vg Steffen
More information about the TYPO3-dev
mailing list