#1698 index.shtml not generated

Slash 2.1/2.2
Other (492)

If a site isn't using stories, index.shtml will never
be generated.

While 95% of sites will not have this problem, I
think there's another instance where index.shtml will
not be updated as it should.

Assuming no story data, or no new stories for a
significant time period:

If a site changes the header or html-header template
(ie modifieds meta data in them), OR slashblocks have
been updated via portald,
index.shtml will never be changed because writestatus
hasn't changed.

Freshenup.pl won't touch index.shtml because there
are no stories with 'dirty' flag set. And I could not
find a point in the code where portald sets the
writestatus so it'd force freshenup to update

Now, if a site isn't using stories, and isn't using
slashboxes (so it's using the essential slash as a
backend for other purposes), other then manually
setting writestatus, there is no way to update
index.shtml out-of-the-box. (an example of such a


The easiest solution is to make sure writestatus is
always set to 'notok'.
A secondary solution would seem to be to make portald
update writestatus after it's run.
A slick solution would be force an update no matter
what in timed intervals (which would probably catch
template changes too).

any thoughts?


  • Rob Malda

    Rob Malda - 2002-02-23

    Logged In: YES

    Since as far as I know, no OSDN sites use Slash in this
    capacity, I'm setting this to priority 2 and suggesting
    someone who wants this submit a patch that implements a
    generic homepage refresh timer.

  • Rob Malda

    Rob Malda - 2002-02-23
    • priority: 5 --> 2
    • assigned_to: nobody --> pudge
  • Chris Nandor

    Chris Nandor - 2002-02-26

    Logged In: YES

    Agreed with CmdrTaco. Though we should decide what the
    behavior should be. I am thinking maybe a var called
    "writeindex" which would be 1 for normal behavior, 2 for
    writing it regardless of status of stories. Or something
    along those lines, real simple-like.

  • Chris Nandor

    Chris Nandor - 2002-03-18
    • priority: 2 --> 1
  • Chris Nandor

    Chris Nandor - 2002-03-18

    Logged In: YES

  • Jonathan Pater

    Jonathan Pater - 2002-09-03
    • assigned_to: pudge --> cowboyneal
  • Jonathan Pater

    Jonathan Pater - 2002-11-21

    Logged In: YES

    My patches to the last refresh took care of this. For now,
    the homepage is rewritten once an hour if it hasn't been.
    Perhaps the functionality will be expanded in the future,
    but that what it does now...

  • Jonathan Pater

    Jonathan Pater - 2002-11-21
    • assigned_to: cowboyneal --> cmdrtaco
    • status: open --> open-fixed
  • Rob Malda

    Rob Malda - 2002-11-22
    • status: open-fixed --> closed-fixed

Log in to post a comment.