Caching caching caching!

0
I have just purchased a copy of your stats for use as a most popular article in the last month module. The only problem is that as far as I can tell, it calculates the result on each hit - which it does not need to.

Once a day is fine and it would be very nice to have selectable caching on this module to avoid slowing the site considerably.

Julian
Responses (6)
  • Accepted Answer

    Wednesday, February 22 2012, 09:20 AM - #Permalink
    0
    hello!

    well, the point is to show real time results..! so catching would not be useful here!

    but also, the module is highly optimized. only one query is made to the DB, and the fields are indexed... that means that it is very fast! have you noticed the site slower or something?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 22 2012, 10:01 AM - #Permalink
    0
    The site in question is not the fastest anyway. In fact Joomla for the most part is slower than say, Silverstripe which I also use a lot. Joomla seems to benefit hugely from being run on Nginx rather than apache but this one is on some 3rd party shared box over which I have little control.

    I believe it to be slower and have added the cache entry to the xml so I can set it far longer. I suppose it was cached anyway given my settings so this might actually be merely a request for the cache parameter to be added so that one can set the time to a decent length.

    But anyway thank you for your VERY prompt reply.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 22 2012, 10:07 AM - #Permalink
    0
    yes thtat's true.

    the thing is that joomla is not the fastest system in the world (although it's not too bad!) and every page request may have 50 mysql queries maybe.. so one more shouldn't be too bad.

    me, for instance, I use Content Statistics in report page to see everything that happens in this site (page views, forum posts, registers, subscriptions.. everything in one page). I have up to 12 modules in there, and some of them show data from lat 90days (just like the graphic on the bottom of the homepage of the site, the black one), and all that actually loads fast fast fast! so that's why I think it shouldn't be a problem

    yes, Cache could be created, but in my opinion it won't actually benefit the system. if would take the same time to read the cache than to simply make the query everytime! :)

    anyway it's good to discuss this kind of things, performance is a key item in this extension.

    greetings to New Zealand! ;) I was there last year. loved it. where you from, if I may ask?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 22 2012, 10:27 AM - #Permalink
    0
    More scientific measurements show the actual page html to be sent in about 0.8 to 1.2 seconds with general caching enabled. Far longer if not.

    If I use my new cache control on the module and turn it off (then do a clear cache) the result is a small increase which might easily be network. In fact I found that the OTSocialShare twitter enable was the biggest page load culprit, often stretching the load out to 6 seconds or more.

    I guess that's the joy of living in New Zealand at the end of a piece of wet string.

    Since twitter is profoundly useless anyway (for a non news site) , I've disabled it.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 22 2012, 10:30 AM - #Permalink
    0
    Auckland, although I want to live in Wanaka. Who doesn't!!?? As a result I do my snowboarding on Mount Ruapehu.

    Where are you from? I am stuck trying to guess from your name.

    Julian
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 22 2012, 02:59 PM - #Permalink
    0
    I hear you man!
    Wanaka is the best place on Earth!
    I was lucky to spend 5 days in there (just 1 year ago!) at some friend's hows, right by the lake... what a place. I loved it. definitely the best spot in all my NZ trip (altohugh I loved lots of other places!)

    You won't guess from my name ;)
    I'm from Barcelona. half the world away from you! actually I believe Barcelona and Auckland are in the antipodes form each other.
    The reply is currently minimized Show
Your Reply