[geeklog-devel] Web Services minutia (and some story stuff)
dirk at haun-online.de
Mon Dec 24 03:45:03 EST 2007
Joe Mucchiello wrote:
>Should the Webservices API call COM_hits? Currently COM_hits (or its
>equivalent) is called in COM_siteFooter but the WS stuff doesn't use
>the siteHeader/siteFooter calls.
>Shouldn't service_get_story update the number of hits on the story?
>Looking at hits of class Story, shouldn't there be a "hit()" function
I don't think the WS calls should counts as hits. There may be a lot of
automated requests for stories during normal usage of the WS. The hits
however are meant as a simple view counter (with the usual flaws of such
a counter, of course), i.e. how many times a (preferrably human) visitor
has seen the article or the site.
Having a hits() function in the story class does make sense, though, I
think. If only to hide the SQL (like COM_hit does for the "total hits"
More information about the geeklog-devel