Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI 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)
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commented