It's 1.4 http://github.com/pylebecq/symfony/blob/v1.4/lib/task/cache/sfCacheClearTask.class.php
-- Pierre-Yves 2010/10/19 Sela Yair <[email protected]> > i couldn't find the sfClearCachTask, is it Symfony 1.4 or 2.0? > I used instead a snippet. > http://snippets.symfony-project.org/snippet/363 > > > On 12 October 2010 09:39, Pierre-Yves LEBECQ <[email protected]> wrote: > >> Did you try to instanciate the sfClearCacheTask and run it ? I see no >> reason for this not to work. >> >> $ccTask = new sfClearCacheTask(); >> $ccTask->run(); >> >> -- >> Pierre-Yves LEBECQ >> >> >> 2010/10/12 Sela Yair <[email protected]> >> >>> is there a single command in sfConfigCache to clear all the cache? >>> i want to enable from the admin to do similar to symfony cc >>> >>> On 8 October 2010 15:00, Damien Alexandre <[email protected]>wrote: >>> >>>> For this kind of question, >>>> make sure to search in the documentation : >>>> >>>> >>>> http://www.symfony-project.org/jobeet/1_4/Doctrine/en/21#chapter_21_removing_the_cache_cache_removal >>>> >>>> And / Or in the snippets : >>>> >>>> >>>> http://snippets.symfony-project.org/snippets/tagged/cache+clear/order_by/date >>>> >>>> >>>> <http://snippets.symfony-project.org/snippets/tagged/cache+clear/order_by/date>Also, >>>> in your code Michal, you don't need to call the sfContext singleton, just >>>> $this->getContext(). >>>> >>>> On Thu, Oct 7, 2010 at 5:25 PM, Eno <[email protected]> wrote: >>>> >>>>> On Thu, 7 Oct 2010, [ISO-8859-2] Micha³ Piotrowski wrote: >>>>> >>>>> > 2010/10/7 HAUSa <[email protected]>: >>>>> > > Is there a way to clear my cache in an action, using PHP? >>>>> > >>>>> > $cacheManager = sfContext::getInstance()->getViewCacheManager(); >>>>> > if ($cacheManager) { >>>>> > >>>>> $cacheManager->remove('blog/index?username='.$username.'&sf_format=html'); >>>>> > >>>>> $cacheManager->remove('blog/index?username='.$username.'&sf_format=atom'); >>>>> > $cacheManager->remove('main/show?username='.$username); >>>>> > } >>>>> >>>>> If this isn't on an "admin" page, you probably should password-protect >>>>> or >>>>> filter request by IP. >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> >>>>> -- >>>>> If you want to report a vulnerability issue on symfony, please send it >>>>> to security at symfony-project.com >>>>> >>>>> You received this message because you are subscribed to the Google >>>>> Groups "symfony users" group. >>>>> To post to this group, send email to [email protected] >>>>> To unsubscribe from this group, send email to >>>>> [email protected]<symfony-users%[email protected]> >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/symfony-users?hl=en >>>>> >>>> >>>> >>>> >>>> -- >>>> Damien ALEXANDRE >>>> >>>> -- >>>> If you want to report a vulnerability issue on symfony, please send it >>>> to security at symfony-project.com >>>> >>>> You received this message because you are subscribed to the Google >>>> Groups "symfony users" group. >>>> To post to this group, send email to [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected]<symfony-users%[email protected]> >>>> For more options, visit this group at >>>> http://groups.google.com/group/symfony-users?hl=en >>>> >>> >>> -- >>> If you want to report a vulnerability issue on symfony, please send it to >>> security at symfony-project.com >>> >>> You received this message because you are subscribed to the Google >>> Groups "symfony users" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected]<symfony-users%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/group/symfony-users?hl=en >>> >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony users" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<symfony-users%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en >> > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<symfony-users%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
