Apr 16

For now I wil be using this basic theme until I find something else. The blog was very slow and I could not find out what caused it. I actually messed up my server trying to fix it. Thank god for AMIs! It turns out that the problem is the plugins and theme so now I use this basic theme and just the necessary plugins. Twitter tools was the one that most clearly made the site slow. It could just be because I use suPHP but I never had any speed problems when I hosted on domeneshop.no, which also runs suPHP.

EDIT: Edited the theme a little and removed some stuff. Now the theme is a little faster and usable.

EDIT2: And then a beautiful word popped into my head. Cache. So installed some cache plugins. I also disabled Twitter tools again . It very clearly slows the page down.

\\ tags: , , ,

6 Responses to “Looooaaaad times”

  1. Tonje Says:

    Helt sant det som står under ringvold.nu. “Where the geek factor is high”. :p

  2. harri Says:

    Så du mener at det ble et bra “slagord”? Lurte på om det ble litt teit.

  3. Ari Says:

    Jeg har bare et php-skript som henter twitter-data, alt som en liten widget. Med WP Super Cache så blir alt cachet, enkelt og greit.

  4. Tonje Says:

    Var bra “slagord” det. Stemmer ihvertfall.

  5. Simon Zimmermann Says:

    What kind of twitter-tools are you using. In case you’re just querying the twitter api you could cache the results and run it as a scheduled job every 15min or so. That would remove away all latency from the remote calls to Twitter on requests. You can store the results in memcached, redis, database, or whatever you prefer for your caching.

    The second approach is to do Twitter updates per user request, but use Asynchronous JavaScript calls. You could store those in cache as well, and serve the cache, and invalidate it every 15 min, but since you have a low visitor count that practically means every user will have to do at least one Twitter api request, probably the first time they reach the site. Which might not be what you want.

  6. harri Says:

    Thanks. Great ideas there. I’ll take a look at the options whenever I get the time. I haven’t prioritized this blog lately as you might have noticed:P

Leave a Reply