[TYPO3-dev] Clear_cacehCmd from scheduler task

Kay Strobach typo3 at kay-strobach.de
Wed Nov 14 23:26:05 CET 2012


Hi,

have you set the group / user settings in installtool, perhaps this
helps you (chmod, etc. can be defined there).

Otherwise wrap a bashscript arround your scheduler call and use

chown
chgrp
chmod

to fix this fast and furious :D

Regards
Kay

Am 14.11.2012 10:19, schrieb Søren Malling:
> 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>
>>


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answer was useful - feel free to donate:
  -
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
  - https://flattr.com/profile/kaystrobach




More information about the TYPO3-dev mailing list