[TYPO3-dev] Clear_cacehCmd from scheduler task
Tomas Norre Mikkelsen
tomasnorre at gmail.com
Wed Nov 14 10:05:34 CET 2012
Hi,
I have various tasks in my T3 project, and one that requires clear cache
when done,
i have following in my task function execute() just before return true;
// Clear cache for pid=1
$GLOBALS['BE_USER']->user['admin'] = 1;
$tce = t3lib_div::makeInstance('t3lib_TCEmain');
$tce->start(Array(), Array());
$tce->clear_cacheCmd(1);
My problem is when clearing cache this way my folder:
typo3temp/Cache/Data/t3lib_l10n got new owner/group permissions
afterwards its owned by root:root which previously was www-data:www-data
which is correct.
Any hints or help for ensuring user/group owner for folder after using
the clear_cachecmd() ?
--
Venlig Hilsen / Best Regards
Tomas Norre Mikkelsen
Tomasnorre at gmail.com
TYPO3 Developer @netimage.dk
TYPO3 Profile:
http://forge.typo3.org/users/4289
Follow me at twitter
Twitter.com/tomasnorre
More information about the TYPO3-dev
mailing list