[symfony-users] Re: Using CacheManager-has() in batch script...
Have you found a solution to your problem? If no let me know because I think I found a way to do it Cheers, Alvaro On Feb 19, 2009, at 7:52 PM, Sumedh wrote: Yeah, here it is - http://www.symfony-project.org/book/1_0/18-Performance#chapter_18_sub_generating_cached_pages But, I would still need to use this cache manager object to get me the list of pages that are not yet cached... :( I want to crawl like 300,000 pages...some of which will get invalidated...I don't want to crawl everything unnecessarily... :| On Feb 19, 3:54 pm, alvaro harryjek...@gmail.com wrote: Maybe you can use the sfBrowser for your batch script, I think there is an example on the symfony book, in the chapter regarding performance. Cheers, Alvaro On Feb 19, 2009, at 3:39 PM, Sumedh wrote: No one? :| On Feb 18, 11:30 am, Sumedh sumedh.inam...@gmail.com wrote: Anyone? Does anyone here use this practice of warming up cache by crawling the pages after a build? On Feb 17, 2:21 pm, Sumedh sumedh.inam...@gmail.com wrote: Hi Friends, I am using Symfony 1.0. I am trying to write a batch script that tries to populate the symfony cache by crawling (wget in spider mode) some pages of the site. Now, I want to crawl only the pages that are not in cache, for better efficiency. So, I want to use $cacheManager-has($internalUri) condition... But, this condition always returns false, even if action for the passed internalUri is cached. When I echoed the url_for($internalUri) in the batch script, I got the URL correctly, apart from base of the URL. It returns something like http://BATCH_SCRIPT_FILE_NAME.php/CORRECT RELATIVE URL. Is this the problem because of which cache manager can't find the passed internalUri in cache? This particular internalUri works fine for internal links within the site... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Using CacheManager-has() in batch script...
Maybe you can use the sfBrowser for your batch script, I think there is an example on the symfony book, in the chapter regarding performance. Cheers, Alvaro On Feb 19, 2009, at 3:39 PM, Sumedh wrote: No one? :| On Feb 18, 11:30 am, Sumedh sumedh.inam...@gmail.com wrote: Anyone? Does anyone here use this practice of warming up cache by crawling the pages after a build? On Feb 17, 2:21 pm, Sumedh sumedh.inam...@gmail.com wrote: Hi Friends, I am using Symfony 1.0. I am trying to write a batch script that tries to populate the symfony cache by crawling (wget in spider mode) some pages of the site. Now, I want to crawl only the pages that are not in cache, for better efficiency. So, I want to use $cacheManager-has($internalUri) condition... But, this condition always returns false, even if action for the passed internalUri is cached. When I echoed the url_for($internalUri) in the batch script, I got the URL correctly, apart from base of the URL. It returns something like http://BATCH_SCRIPT_FILE_NAME.php/CORRECT RELATIVE URL. Is this the problem because of which cache manager can't find the passed internalUri in cache? This particular internalUri works fine for internal links within the site... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Using CacheManager-has() in batch script...
Yeah, here it is - http://www.symfony-project.org/book/1_0/18-Performance#chapter_18_sub_generating_cached_pages But, I would still need to use this cache manager object to get me the list of pages that are not yet cached... :( I want to crawl like 300,000 pages...some of which will get invalidated...I don't want to crawl everything unnecessarily... :| On Feb 19, 3:54 pm, alvaro harryjek...@gmail.com wrote: Maybe you can use the sfBrowser for your batch script, I think there is an example on the symfony book, in the chapter regarding performance. Cheers, Alvaro On Feb 19, 2009, at 3:39 PM, Sumedh wrote: No one? :| On Feb 18, 11:30 am, Sumedh sumedh.inam...@gmail.com wrote: Anyone? Does anyone here use this practice of warming up cache by crawling the pages after a build? On Feb 17, 2:21 pm, Sumedh sumedh.inam...@gmail.com wrote: Hi Friends, I am using Symfony 1.0. I am trying to write a batch script that tries to populate the symfony cache by crawling (wget in spider mode) some pages of the site. Now, I want to crawl only the pages that are not in cache, for better efficiency. So, I want to use $cacheManager-has($internalUri) condition... But, this condition always returns false, even if action for the passed internalUri is cached. When I echoed the url_for($internalUri) in the batch script, I got the URL correctly, apart from base of the URL. It returns something like http://BATCH_SCRIPT_FILE_NAME.php/CORRECT RELATIVE URL. Is this the problem because of which cache manager can't find the passed internalUri in cache? This particular internalUri works fine for internal links within the site... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Using CacheManager-has() in batch script...
No one? :| On Feb 18, 11:30 am, Sumedh sumedh.inam...@gmail.com wrote: Anyone? Does anyone here use this practice of warming up cache by crawling the pages after a build? On Feb 17, 2:21 pm, Sumedh sumedh.inam...@gmail.com wrote: Hi Friends, I am using Symfony 1.0. I am trying to write a batch script that tries to populate the symfony cache by crawling (wget in spider mode) some pages of the site. Now, I want to crawl only the pages that are not in cache, for better efficiency. So, I want to use $cacheManager-has($internalUri) condition... But, this condition always returns false, even if action for the passed internalUri is cached. When I echoed the url_for($internalUri) in the batch script, I got the URL correctly, apart from base of the URL. It returns something like http://BATCH_SCRIPT_FILE_NAME.php/CORRECT RELATIVE URL. Is this the problem because of which cache manager can't find the passed internalUri in cache? This particular internalUri works fine for internal links within the site... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Using CacheManager-has() in batch script...
Anyone? Does anyone here use this practice of warming up cache by crawling the pages after a build? On Feb 17, 2:21 pm, Sumedh sumedh.inam...@gmail.com wrote: Hi Friends, I am using Symfony 1.0. I am trying to write a batch script that tries to populate the symfony cache by crawling (wget in spider mode) some pages of the site. Now, I want to crawl only the pages that are not in cache, for better efficiency. So, I want to use $cacheManager-has($internalUri) condition... But, this condition always returns false, even if action for the passed internalUri is cached. When I echoed the url_for($internalUri) in the batch script, I got the URL correctly, apart from base of the URL. It returns something like http://BATCH_SCRIPT_FILE_NAME.php/CORRECT RELATIVE URL. Is this the problem because of which cache manager can't find the passed internalUri in cache? This particular internalUri works fine for internal links within the site... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---