Chip's Tips for Developers

Contains coding, but not narcotic.

Improved caching on tag cloud widget for WordPress

January 3rd, 2007 6:09:27 pm pst by Sterling Camden

Version 2.1, for use with Jerome’s Keywords plugin version 2.

I’ve been putting off updating the tag cloud widget for some time, because Jerome had indicated that he would include it in his plugin in a future version. That hasn’t happened yet, so I wanted to add a couple of new features now:

  1. You can now control the expiration of the cached display. It still defaults to 900 seconds, but you can alter it to be anything you wish.
  2. Besides releasing the cache when the widget controls are updated, it also releases the cache when a post is edited, saved, or published.

Please let me know if you experience any difficulties, or if you have suggestions for further enhancements.

Happy tagging!

UPDATE: added error check for when Jerome’s Keywords 2.0 is not activated. Get the latest version here.

Posted in PHP, Web, Wildly popular, WordPress | 12 Comments » RSS 2.0 | Sphere it!

12 Responses to “Improved caching on tag cloud widget for WordPress”

  1. [...] Recent Comments WordPress tag cloud widget version 2.0 for Jerome’s Keywords 2.0 — Chip’s Tips for Developers on Improved caching on tag cloud widget for WordPressSterling Camden on WordPress tag cloud widget version 2.0 for Jerome’s Keywords 2.0Transmission Content + Creative, Mark Goren, New Marketing Coach » Blog Archive » Blogroll approaches on New and improved WordPress OPML Blogroll widgetChipping the web – two forms of pleasure — Chip’s Quips on Synergy fibsSterling Camden on Correction for Jerome’s Keywords plugin for WordPress Post Stats [...]

  2. [...] Yesterday I released a new version (2.1) of my tag cloud widget for WordPress. This one improves control of the cached display. [...]

  3. Mike says:

    Jerome is MIA. Any idea what happened to him? I was hoping 2.0 would have been released before he went AWOL

  4. I don’t know, Mike. Jerome seems to spend a lot of time away from blogging. I was expecting him to release 2.0 by now also, since he’s already started talking about the next version.

  5. Aoyoyo says:

    I got this error after activated the plugin.

    Fatal error: Call to a member function on a non-object in /home/rangwa5/public_html/wp-content/plugins/keywords-tagcloud.php on line 53

  6. Aoyoyo, did you install and activate the Jerome’s Keywords plugin first? I suppose I should add some error checking there.

  7. [...] Aoyoyo reported an error in my keywords-tagcloud widget for WordPress. That widget requires Jerome’s Keywords version 2.0 to be installed and activated. Lazy me, I wasn’t checking for the opposite case, which results in a “Fatal error: Call to a member function on a non-object”. Here are my wrists. Slap ‘em hard. [...]

  8. Fixed it. Thanks for reporting the error, Aoyoyo. If you do have JK installed, make sure it’s the 2.0 beta version, or else use this version of the widget.

  9. Mazdakam says:

    Hi first thanks for your nice work, it would be better if it has this features:
    Most popular color
    Most popular font size
    Least popular color
    Least popular font size
    Font size units

  10. Thanks for the suggestions, Mazdakam.

    You can specify the font sizes in Options/Jerome’s Keywords/Tag Cloud Display using the Tag count scaling maximum and minimum fields. These values will be used in the “size” attribute of the “font” element.

    I’ll consider adding color specification to a future version, but in the mean time you can style that yourself using CSS applied to the specific class of each font size (“keywordn“). Do a View Source to see what I mean.

  11. [...] to all previous posts on this subject for the sake of those who subscribe to comments. [...]

Leave a Reply

Better Tag Cloud