By Javier García, 2 years and 8 months ago

1 Blog Cacher 2.0.2

The new version of this plugin has been released. New features:

  • Now the plugin works with secured sites (HTTPS).
  • Fixed the bug where the plugin didn't work if «WordPress address» and «Blog address» were different.

You can read the plugin full features or download it right away.

25 comments

#1. dalton, 2 years and 8 months ago

Hi there,
I just wanted to thank you for this excellent plugin (I never could get WP-Cache or WP-SuperCache to work, but this one is splendid). I'm just curious why you put the wp-cache folder in the /wordpress folder and not /wordpress/wp-content like other plugins? Wordpress developers recommend using wp-content because it simplifies the upgrade process (only one folder to worry about).

Thanks again,
Dalton

#2. Javier García, 2 years and 8 months ago

Many people give read/write permissions to the whole wp-content directory, making it less secure. In any case, upgrading WordPress doesn't affect the wp-cache directory, wherever is placed.

#3. dalton, 2 years and 8 months ago

Ah, OK, good to know, thanks.

By the way, have you experienced any problems with this plugin and Safari? I am using Safari 3 on a Mac, and a lot of pages are unavailable. The error is

«Safari can't open the page «http://beta.storycorps.net/share». The error was: «cannot parse response» (NSURLErrorDomain:-1017)»

The pages open just fine in IE and Firefox.

#4. Javier García, 2 years and 8 months ago

No, I'm not aware of that behaviour. I just look up that error and i couldn't find anything useful.

#5. DLE, 2 years and 8 months ago

Javier,

Your cache plugin is so much easier to handle than WP-Cache, but I have two questions I cannot answer nor can I find out more info on your site:

1. Is there a way to automatically clear expired cached files? It seems you have to do this manually and it can really clog up your server with expired files. I can't find any way to set your plugin to auto-delete expired files. Help!

2. Comments don't always show up after someone has posted them. I can't find a fix for this. Again, your help would be appreciated.

Thank you!

#6. Javier García, 2 years and 8 months ago

> Is there a way to automatically clear expired cached files?

There is a button in the control panel to do that. Besides that there is no «auto-delete», a cronjob would be needed for such thing, and probably it's not worth for most users.

> Comments don't always show up after someone has posted them

When a comment is created (or deleted, edited, etc.) the cache for the post is deleted, so when you access again a new one is generated. This work always. Maybe you have enabled browser cache and you are seeing a cache generated by the browser, not the plugin.

#7. DLE, 2 years and 8 months ago

Javier,

According to what the plugin is telling me from my advanced cache setup, «Enable Browser Cache» is set to «No.»

I don't know why a cron job is needed. Why not just set the plugin to delete files once they expire? Why keep them around once they expire anyway? As it is right now, I have to delete files everyday or else they stack up quick, 20-30 MB a day.

#8. Javier García, 2 years and 8 months ago

> I don't know why a cron job is needed. Why not just set the plugin to delete files once they expire?

Because the script can't run at a certain time (when a file is expired), that's why you need a cron job. A poor choice would be deleting all expired files everytime the script runs (or given certain time), but deleting all those files takes some time, so it would affect page load time.

It simply can't be done properly without a cronjob.

> I have to delete files everyday or else they stack up quick, 20-30 MB a day

If 20-30MB a day represent a problem, you should change hosting...

#9. Dario, 2 years and 7 months ago

Hi, very nice plugin; it works pretty well; Though, it has a VERY strange behaviour on my website:

1) I activate it, configure it, everything seems fine tuned
2) I try to load a page (logged in as an admin) and it works
3) I re-load a page to notice any difference/improvement with your cache, and the stylesheet won't load!

It's very very strange, the css is the only thing that doesn't work. So I tried using Internet Explorer...and it works even with page reloads. Seems the «bug» affects only Firefox, what's wrong here? Looking at the console, it seems to load the css file as an empty version of it...and what's even worse than that the link is correctly written inside the html!!! The only «error» I could find is you write your stats about loading time AFTER body/html tags, and that may harm Firefox rendering engine (and maybe Safari's one too, looking at one of the comments above?). Hope my experience can help, have a look at http://dario.caregnato.net with Firefox and have fun ;)

#10. Javier García, 2 years and 7 months ago

I can't see that behaviour in your site, everything works fine with Firefox. Take into account that the plugin is being used widely and noone has ever reported that behaviour. So probably it's a problem with your browser cache or some plugin messing with the code. The caching plugin doesn't differenciate browsers, so it's unlikely that an error happens just in one browser.

#11. Dario, 2 years and 7 months ago

Yep, I know it doesn't differentiate browsers; BUT different browsers treat differently the same code....so what I was talking about was your choice of putting the < - - - loaded first time etc etc etc comment AFTER . I thought it was some kind of «quirks mode» ;) well, I don't think I have somthing strange with my browser, never had any problem like this; I think it has something to do with http headers. Have you tried going to the home page, THEN hitting f5 to reload the page? See you,

Dario

#12. Javier García, 2 years and 7 months ago

> Have you tried going to the home page, THEN hitting f5 to reload the page

Yes, of course, that's the first I tried. It worked OK.

> what I was talking about was your choice of putting the < - - - loaded first time etc etc etc comment AFTER

If you put the comments before the HTML you can have problems with some browsers and with validation. Though I didn't even thought of that, those comments are there because it's where they are supposed to be...

> I think it has something to do with http headers

I doubt it, but you can always try to avoid css file caching. What you should do is compare the HTML returned when everything is OK and when you see no style, for both the HTML (i.e. your front page) and your style sheet.

#13. Renka, 2 years and 7 months ago

Hi. I am using nextgen Gallery and the random picture function. And I don 't know much about caching :-)

Is there any way to exclude from caching that «random picture»?

#14. Javier García, 2 years and 7 months ago

Renka: Yes, dynamic code, as you can read in the features list:

- Support for dynamic code (mfunc and mclude comments) as in Staticize Reloaded (and later in WP-Cache): http://photomatt.net/2004/07/26/staticize-25/

#15. antis3ptick, 2 years and 7 months ago

when i activated this plugin, my adsense started to not number my clicks. when i deactivate plugin, it backs to normal. And samething happened on my stats only number every ctrl+f5 visits not anymore. I think this tool its not useful.

Thanks

#16. Javier García, 2 years and 7 months ago

- The plugin doesn't affect AdSense. At all. AdSense is an external javascript. Anyone who has the minimal notions about HTML, programming etc. will agree. In fact we use the plugin and AdSense without problem (as well as other hundreds of sites do).
- AdSense stats aren't real time. Probably you activated the plugin, didn't see the stats updating and got it all wrong.

I didn't get your second sentence, sorry, your English is quite poor.

#17. dariusz, 2 years and 6 months ago

Thanks for your hard work on this. Installed on first shot, and by golly, it works, and without any symbolic links .. tsk.

#18. Anthony, 2 years and 5 months ago

Hello, thanks for such a great plugin!

How can I prevent the dynamic sidebar from being cached? I have it with polls and latest comments. I don't completely understand the mfunc or mincl commands, and can't find a clear guide on how to use them to bypass the cache.

#19. Javier García, 2 years and 5 months ago

You should Google «mfunc» and «mclude», you'll find things like this: http://www.hackwater.com/node/75

#20. JDM1, 2 years and 4 months ago

good day where can I download 1 Blog Cacher 1.0? I tried running 2.0 and 2.0.2 on my site but my host does not allow .htaccess modifications, etc. when I enter my site with 1 Blog Cacher 2.0.2 enabled, it asks for username and password due to the .htaccess modification. I'd like to use/install 1 Blog Cacher 1.0 instead as it has no (I believe) automated .htaccess modifications. Thanks a lot and more power!

#21. Javier García, 2 years and 4 months ago

Sorry, I don't know what you are talking about, this plugin doesn't use .htaccess...

#22. JDM1, 2 years and 4 months ago

ok thanks! but how can I disable this: «The plugin creates automatically a .htaccess file in the cache directory that forbids web access.»

from: http://wordpress.org/extend/plugins/1-blog-cacher/other_notes/

I believe this can be resolved by just editing .htaccess or deleting it. but unfortunately my host does not allow us to do so... that's why I thought of just «editing» the plug-in itself or using an older version. thanks again.

#23. Javier García, 2 years and 4 months ago

The .htaccess is created in the cache directory (wp-cache) and only affects that directory, not the content of your blog.

#24. JDM1, 2 years and 4 months ago

yes indeed its for the wp-cache, but when people access the site, they're also accessing the cache files. thus, my host interferes with the .htaccess created in the wp-cache folder (it asks everyone for username and password)

props to this plug-in btw, it just feels a tad frustrating that my host is so strict. :( I guess I'd have to find other ways to have caching. thanks again. I tried this plug-in on a different site of mine on a different host, and it installed flawlessly. :D

#25. Javier García, 2 years and 4 months ago

> yes indeed its for the wp-cache, but when people access the site, they're also accessing the cache files.

They're not accessing cache files via web (hence they are forbidden), they access normal blog pages and the plugin retrieves internally those cache files.

Also I don't know how that .htaccess could interfere with your web. .htaccess file affects its directory and child directories, not parent directories. In any case you can simply search for «.htaccess» in the plugin files and remove the line where it's created.

Write a comment

If you want to add your comment on this post, simply fill out the next form:





* Required fields

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>.

1 trackback

To notify a mention on this post in your blog, enable automated notification (Options > Discussion in WordPress) or specify this trackback url: http://​1blogcacher.com/​2007/​12/​1-blog-cacher-2-0-2.html/​trackback