Needs work
Project:
Cache Warmer
Version:
7.x-4.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2014 at 05:49 UTC
Updated:
7 Mar 2017 at 16:21 UTC
Jump to comment: Most recent
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.
| Comment | File | Size | Author |
|---|---|---|---|
| cache_warmer_aliases.patch | 3.14 KB | josaku |
Comments
Comment #1
socialnicheguru commentedComment #3
socialnicheguru commentedSo 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.
Comment #4
socialnicheguru commented$ 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