If some nodes do not have their aliases, without no-aliases, cache_warmer does not make the nodes cached.

The reason is as follows.

In cache_warmer_get_items_drupal7_both, if the node does not have its alias, return node IDs.
However, cache_warmer_get_items_drupal7 does not.

The simple workaround for me is the attached patch. It call cache_warmer_get_items_drupal7_both even if one of options (latest and updated) is specified.

CommentFileSizeAuthor
cache_warmer_aliases.patch3.14 KBjosaku

Comments

socialnicheguru’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, cache_warmer_aliases.patch, failed testing.

socialnicheguru’s picture

Status: Needs work » Needs review

So i added a hubfile with only http://mysite.com/node/nids and no aliases.

I could not get it to crawl. I think this might be why.

socialnicheguru’s picture

Status: Needs review » Needs work

$ patch -p1 < cache_warmer_aliases.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- cache_warmer_db7.inc_orig 2014-11-10 14:32:22.620574680 +0900
|+++ cache_warmer_db7.inc 2014-11-10 14:37:17.361475038 +0900
--------------------------
File to patch: ./includes/cache_warmer_db7.inc
patching file ./includes/cache_warmer_db7.inc
Hunk #2 FAILED at 87.
1 out of 2 hunks FAILED -- saving rejects to file ./includes/cache_warmer_db7.inc.rej