Mike Little’s not-quite-so-daily thoughts, babblings, and random synapse firings!
A collection of random thoughts and links. Nothing too exciting. ;-) -- Mike Little
[powered by WordPress.]
I’ve made some minor changes to the blog over the last few days. Firstly, I’ve been using Ricardo Galli’s WP-Cache 2.0 plugin. This is an efficient WordPress page caching system. It should make the site much faster and responsive. WP-Cache started life as the “Staticize Reloaded” by matt and billzeller. I like the fact that it automatically invalidates the appropriate cache files when you publish a post or page or comment.
It also allows you to have portions of you page remain dynamic. This is fantastic. I needed my page counter to remain dynamic in order to be accurate.
Someone kindly pointed out that clicking on the random Gallery image in the side bar was opening up the gallery in the tiny little iframe still in the sidebar. Not very useful that. I remembered that I could include the random image directly in the sidebar, but that the code wasn’t XHTML compatible. With the caching plugin it would also mean that the image would stop being random.
For my second tweak I ended up having to do a couple of things. One was to hack the Gallery code to produce valid XHTML. Unfortunately the dynamic part of the caching code which allows you to include a php file assumes that it needs to prepend ABSPATH to the include. That’s not the case for the random gallery image. So the last task was to tweak the dynamic part of the caching plugin so that I could include my gallery random image code from an http url.
Update 21/07/2005: I’ve submitted a trac ticket with a patch against the latest revision to implement this.
I hope these changes help the site to run faster. It had been slowing down again. This was due to too many externally generated content in the sidebars. This is all cached now so things should be much quicker.
The URI to TrackBack this entry is: http://zed1.com/journalized/archives/2005/07/20/site-updates/trackback/
Please note: Comment moderation is currently enabled so there will be a delay between when you post your comment and when it shows up. Patience is a virtue; there’s no need to re-submit your comment.
[powered by WordPress.]
counter:
13080878
Akismet has protected Mike Little's Journalized from 1,802,304 spam comments.
jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jun | Aug » | |||||
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |

95. We are waking up and linking to each other. We are watching. But we are not waiting.
— The Cluetrain Manifesto


43 queries. 0.941 seconds
July 21st, 2005 at 06:24
Do you mean you have modified the actual plugin? Cos I would like the same thing too and would be really glad if you could help me out with that.
TIA
July 21st, 2005 at 07:59
AJ,
Yeah I had to modify the plugin code. I’ll probably submit a patch to the repository.
Mike
July 21st, 2005 at 10:20
AJ,
I’ve now submitted a trac ticket with a patch against the latest revision to implement this.
It should be easy to apply yourself against the latest revision or else wait for Ricardo to update the plugin.
August 1st, 2005 at 00:58
Caching Plugin für Wordpress
Ich habe heute in einem meiner Blogs das WP-Cache 2.0 Plugin installiert. Es ist die Fortsetzung des Staticize Reloaded von Matt, welches Probleme mit Sonderzeichen machte.
…
August 6th, 2005 at 17:39
Hi Mike - we are using your sand template on our site… just implemented it the other day and have several tweaks (colors) to get what we want.. a work in progress.
Anyway, I would like to add the gallery program you are using, to our site also. Reading this post made me wonder if it’s a difficult thing to add? It sounds like maybe it doesn’t work correctly “right out of the box”?
August 6th, 2005 at 22:33
Hi Judi
I only had particular problems because I am using a caching plugin which meant I needed to tweak.
If you get the gallery software installed, its pretty easy to get the random picture in your sidebar. Let me know if you need any help.
Mike