web commit by cworth: Es
[ikiwiki.git] / doc / bugs / A_page_that_inlines_pages__61____34____42____34___results_in_unnecessary_feed_generation.mdwn
1 I noticed when generating my wiki that all of my RSS feeds were
2 getting regenerated even when I edited only a page that did not affect
3 any feed.
4
5 I found that the problem only occurs in the presence of a file that
6 contains \[[inline pages="*"]].
7
8 Here's a short script for replicating the bug. Just cut and paste this
9 to a shell, (it will only muck in a new /tmp/ikiwiki-test directory
10 that it will create):
11
12         cd /tmp
13         mkdir ikiwiki-test; cd ikiwiki-test; mkdir src
14         echo '\[[inline pages="blog/*"]]' > src/myblog.mdwn
15         mkdir src/blog; echo "A blog entry" > src/blog/entry.mdwn
16         echo 'use IkiWiki::Setup::Standard {
17                 srcdir => "src",
18                 destdir => "output",
19                 url => "http://example.com",
20                 templatedir => "/dev/null",
21                 underlaydir => "/dev/null",
22                 rss => 1,
23                 wrappers => [],
24                 verbose => 1,
25                 refresh => 1
26         }' > setup
27         ikiwiki --setup setup
28         ls -l --time-style=full-iso output/myblog/index.rss
29         echo "not a blog entry" > src/not-a-blog.mdwn
30         ikiwiki --setup setup
31         ls -l --time-style=full-iso output/myblog/index.rss
32         echo '\[[inline pages="*"]]' > src/archives.mdwn
33         ikiwiki --setup setup
34         ls -l --time-style=full-iso output/myblog/index.rss
35         echo "still not blogging" >> src/not-a-blog.mdwn
36         ikiwiki --setup setup
37         ls -l --time-style=full-iso output/myblog/index.rss
38
39 Here's the tail of the output that I see for this command:
40
41         $ echo "not a blog entry" > src/not-a-blog.mdwn
42         $ ikiwiki --setup setup
43         refreshing wiki..
44         scanning not-a-blog.mdwn
45         rendering not-a-blog.mdwn
46         done
47         $ ls -l --time-style=full-iso output/myblog/index.rss
48         -rw-r--r-- 1 cworth cworth 459 2007-06-01 06:34:36.000000000 -0700 output/myblog/index.rss
49         $ echo '\[[inline pages="*"]]' > src/archives.mdwn
50         $ ikiwiki --setup setup
51         refreshing wiki..
52         scanning archives.mdwn
53         rendering archives.mdwn
54         done
55         $ ls -l --time-style=full-iso output/myblog/index.rss
56         -rw-r--r-- 1 cworth cworth 459 2007-06-01 06:34:37.000000000 -0700 output/myblog/index.rss
57         $ echo "still not blogging" >> src/not-a-blog.mdwn
58         $ ikiwiki --setup setup
59         refreshing wiki..
60         scanning not-a-blog.mdwn
61         rendering not-a-blog.mdwn
62         rendering archives.mdwn, which depends on not-a-blog
63         done
64         $ ls -l --time-style=full-iso output/myblog/index.rss
65         -rw-r--r-- 1 cworth cworth 459 2007-06-01 06:34:38.000000000 -0700 output/myblog/index.rss
66
67 It looks like the rendering of archives.mdwn is also silently
68 generating myblog/index.rss.