I have created a page with all the links that I want to have cached on my site
is there anyway for me to pass in that page to cache_warmer as my hub_page?
Also can I run 'drush cache-warmer' as a particular user?

Comments

SocialNicheGuru created an issue. See original summary.

SocialNicheGuru’s picture

Title: URL instead of hub_page? » Use a xml file created by a view and allow cache warming per use
Category: Support request » Feature request

I want to be able to recache private files. There is already a way to do it for public files using xmlsitemap. The below method can be extended to anonymous users also (uid = 0).

I want to crawl a private site or a site with private groups
I would like to use a view to list all the content that a user has access to.
the page might be http://mysite/sitemap-private-user/uid
pass in the user id
this page would not be publicly accessible

it would be great to be able to login as a user (possibly by using the masquerade module), store the sessions per user
then instead of hubpage.txt use the url above and pass in the uid
crawl those pages

loop through all users ie. rinse and repeat for all users

so either a particular user or role with permissions to view the page, execute the script, and masquerade as other users would be needed.

possibly be nice to have a way to throttle this incase there is a lot of content or users.
also it would be nice to add this to a jobs_queue

I don't think recaching on expire is necessary as there is a recacher module (http://drupal.org/project/recacher)

SocialNicheGuru’s picture

Title: Use a xml file created by a view and allow cache warming per use » Use a xml file created by a view and allow cache warming per user