[TYPO3-dev] Clear_cacehCmd from scheduler task

Søren Malling soren.malling at gmail.com
Wed Nov 14 10:19:32 CET 2012


Quick guess: Is your scheduler task run by root (check your crontab) ?


Søren Malling

Twitter: twitter.com/sorenmalling
TYPO3 Danmark: twitter.com/typo3dk


On Wed, Nov 14, 2012 at 10:05 AM, Tomas Norre Mikkelsen <
tomasnorre at gmail.com> wrote:

> 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 <http://forge.typo3.org/users/4289>
>
>
> Follow me at twitter
> Twitter.com/tomasnorre
> ______________________________**_________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-dev<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev>
>



More information about the TYPO3-dev mailing list