[Users] "Last Updated" shows current time instead of last update
Nir Soffer
nsoffer at redhat.com
Thu Feb 20 18:02:42 UTC 2014
----- Original Message -----
> From: "Yedidyah Bar David" <didi at redhat.com>
> To: "Nir Soffer" <nsoffer at redhat.com>
> Cc: "infra" <infra at ovirt.org>, "users" <users at ovirt.org>
> Sent: Thursday, February 20, 2014 4:27:21 PM
> Subject: Re: [Users] "Last Updated" shows current time instead of last update
>
> ----- Original Message -----
> > From: "Nir Soffer" <nsoffer at redhat.com>
> > To: "Yedidyah Bar David" <didi at redhat.com>
> > Cc: "infra" <infra at ovirt.org>, "users" <users at ovirt.org>
> > Sent: Thursday, February 20, 2014 12:15:42 PM
> > Subject: Re: [Users] "Last Updated" shows current time instead of last
> > update
> >
> > ----- Original Message -----
> > > From: "Yedidyah Bar David" <didi at redhat.com>
> > > To: "infra" <infra at ovirt.org>, "users" <users at ovirt.org>
> > > Sent: Monday, February 17, 2014 2:43:42 PM
> > > Subject: [Users] "Last Updated" shows current time instead of last update
> > >
> > > Hi all,
> > >
> > > Sorry for cross-posting. Not sure what's the correct address to discuss
> > > this.
> > >
> > > Almost all of the pages on the ovirt.org wiki that have "Last Updated:",
> > > actually have:
> > >
> > > Last updated: {{CURRENTMONTHNAME}} {{CURRENTDAY}},
> > > {{CURRENTYEAR}}<!--This
> > > is
> > > markup for current date, do not change-->
> > >
> > > thus showing the current date and not the last change date. When
> > > searching
> > > google you see the last time its robot happened to fetch the page.
> > >
> > > See e.g. [1] for a (possibly non-complete) list.
> > >
> > > Not sure if that's intended or not, but I personally find it useless and
> > > misleading.
> >
> > This is indeed useless and wrong and should be removed.
> >
> > Does this work?
> >
> > Last updated on {{REVISIONDAY}}/{{REVISIONMONTH}}/{{REVISIONYEAR}} by
> > {{REVISIONUSER}}
>
> If I Edit, then Show preview, it's already updated, even before Save page.
> I personally find it a bit weird. Anyway, I did this on a test page and it
> seems to work, but I have to wait a day to make sure the date does not
> change...
>
> In any case, it does affect performance. Not sure it's very significant,
> though.
>
> I now changed the following pages (picked up randomly):
>
> http://www.ovirt.org/Features/Minimum_guaranteed_memory
> http://www.ovirt.org/Features/MultiHostNetworkConfiguration
> http://www.ovirt.org/Features/Node/PluginLiveInstall
> http://www.ovirt.org/Features/Node/PackageRefactoring
> http://www.ovirt.org/Features/Automatic_scaling
>
> I changed it to:
>
> Last updated on {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY}} by
> {{REVISIONUSER}}
>
> That is, ISO date.
Better!
But see Dave version, which uses zero-padded day {{REVISIONDAY2}}
>
> If we do not see a significant impact in a few days, we should probably edit
> all pages, probably with some bot.
I don't see any reason why this should effect performance. The "expensive" warning
is about showing revision meta data for another page.
Nir
More information about the Users
mailing list