In preparation for the release of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.
Version 3.1.4 will still be available for download here in the short term.
For the support forum - and to visit our new site and to get details of version 4.0, click on the logo to take you to simplepressforum.com
This forum is currently locked - access is read only
I now use the outstanding WP Super Cache. One side effect is that when new topics or comments are posted to my copy of SF, the cache isn’t cleared so that those new topics or comments will show up. Instead, they have to wait until the cache is cleared automatically. Is there a way to make SF clear the cache when new topics and comments are posted?
I have never looked into WP Super Cache but if it basically works the same as WP Cache then excludng the forum slug in the cache options should be all you need to do. If that isn’t an option then you’d be better off talking to the cache author - although it would be good to know the answer here.
Andy, excluding the forum slug would mean that the forum was never cached. I really need it to be: the speed improvement from caching is substantial and makes a difference to the usability of the forum.
The author of WP-Super-Cache suggests this course of action, though it’s still more than I’m capable of at the moment.
Look through the simple forums documentation or source, and hopefully you’ll find an action you can call ‘wp_cache_no_postid’ on. For example, if it’s called ’simple_forums_post’ then the action is:
add_action( ’simple_forums_post’, ‘wp_cache_no_postid’ );
Andy, do you have any more idea than idea how that "wp_cache_no_postid"
is supposed to be called? It doesn’t seem to work if I attach it the
either of the post fuctions sf_save_topic or sf_save_post. I suspect it needs to be attached to an actual WP action, but I don't see any in your code that look suitable.
Andy, the make or WP Super Cache has posted some more code about this–I’m going to see if I can make it work but I’m interested in your experience with it, too.
Well I am probably daft but I don’t really see how creating a separate file that is not incuded with anything else is going to do much. Anyway the save topic and save functions and just internal functions creating database records. There is nothing there to be cached. it is the display that matters I would have thought.
I’ve been taking a look at this over the past hour and to be honest I can see absolutly no way that it could ever work with the forum which uses a single page dynamically populated and rendered.
I’d love to be proven wrong because then I could use it myself but I think it’s probably impossible.
if what I am reading is correct, the cache should be cleared whenever a new post is saved or an old forum post is edited.
The next time the forum is rendered, the cache is repopulated.
This would have some adverse effects globally on SF however as SF has some data displayed dynamicaly such as ‘Currently Online:’ and the ‘Sidebar Widget’.
SF also has different displays for different users, such as Admin, Moderators, members logged in, members logged out, and guests.
Conceivably you could AJAXify those portions of the display sequence, or the logged in status and level of the user could be recognized in the super cache plugin.
Conversely, some of the Super Cache code could be used in rendering the dynamic content of SF, as an addon to SF, or added into a complete re-write of the SF core code for the next version.
I have free hosting that I offer as part of my EVBID.com company, I can easily create one.
The servers do run the latest wordpress and SF releases that I have tried, however some plugins, that require that apachee run outside of SAFE MODE, will not work (wp-auto-update and wp-latest version, are two such examples.)
Oh I see, thanks. I would assume it will work the same way as wp super cache. I just need to type in forum right? forum is the default page name on my case.