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.
Hi,
I've just moved to Authcache from using Boost (commerce site) and I was wondering if there is a way to warm up the Authcache with a wget like I was able to do with Boost?
This worked like a charm with Boost but no joy with Authcache :(
wget --quiet https://www.example.com/sitemap.xml --output-document - | egrep -o "https://www.example.com[^<]+" | wget -q --delete-after -i -
any ideas please?
Comments
Comment #1
znerol CreditAttribution: znerol commentedSee: #2142835: cache warming auth cache
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedI put together a couple of shell scripts that use wget & an XML sitemap created by the XML Sitemap module to crawl & cache Authcache pages for both anonymous & authenticated users. I have an account I created (named 'authentic') specifically to work with the authenticated user script. I run them daily from cron. This site only uses https, so to get authenticated page cache for http you would need to also hit those pages from http. In addition, if you have multiple combinations of user roles, you will need to do this for each combination to get pages cached for them (this is the way Authcache prefixes cached pages with a unique id for each combination of roles).
For anonymous users:
For authenticated users:
I hope this will help somebody. Perhaps a script like this can be incorporated into Authcache?