ifacethoughts

Using WP Super Cache

This blog is now using WP Super Cache, an improved version from Donncha. This blog using the older version, but did face some problems, especially because addition of comments did not refresh the cache. This version should solve the problem. The only caveat with this one is that permalinks is required. Though most of us do enable them, this is not enforced by WordPress. Otherwise it is performing well. Do let me know if you face any problems.

Discussion [Participate or Link]

  1. Binny V A said:

    Comments cause a lot of problems with the caching plugins - the latest comments don’t show up. I hope your blog don’t have that issue.

  2. Patrix said:

    Somehow I kept getting a Fatal Error notice on the Options page when I installed Super-Cache. BTW there exists something called xCache. Know what that is about?

  3. Patrix said:

    Got this error when I submitted my previous comment. The comment appeared fine but had to refresh the post page to verify that.

    WordPress database error: [Table 'ifacetho_wrdp1.wp_post2cat' doesn't exist]
    SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM `wp_posts` p LEFT JOIN `wp_post2cat` pc ON p.ID = pc.post_id LEFT JOIN `wp_categories` c ON pc.category_id = c.cat_ID WHERE post_status = ‘publish’ GROUP BY cat_ID

  4. Montoya said:

    I seriously think you need to update either Wordpress or the Super Cache plugin, or both.

  5. Abhijit Nadgouda said:

    Thanks for reporting these errors. post2cat is not present in WordPress, so it was definitely one of the plugins doing the wrong thing. What I found out was that I was doing the wrong thing by using an older version of Google Sitemap plugin with WordPress 3.1. I have installed the newer version, so this comment should happen without any errors.

  6. Apologising For Problem While Commenting | iface thoughts said:

    [...] compatible with the new WordPress, which included the Google Sitemap generator which was causing an error. The sitemap generator has been upgraded, so the error will disappear now. Thanks for bearing with [...]

  7. Abhijit Nadgouda said:

    Pratik, I missed your question. XCache is a opcode caching engine for PHP. Like APC or eAccelerator, it caches compiled PHP scripts, so that they do not have to interpreted for every request. It can boost your performance a lot. Unfortunately this requires that the host gets it for you on shared hosting.

    It also requires a bit of work in integrating it with your application. For WordPress there are plugins already available for XCache and eAccelerator.

  8. johny why said:

    When trying to activate Super Cache, I got:
    “Plugin could not be activated because it triggered a fatal error.”
    “Fatal error: Cannot redeclare wp_cache_add_pages() (previously declared in /homepages/36/d176208770/htdocs/wordpress/wp-content/plugins/wp-cache/wp-cache.php:182) in /homepages/36/d176208770/htdocs/wordpress/wp-content/plugins/wp-super-cache/wp-cache.php on line 56″

    What should I do?

    thanks

  9. Abhijit Nadgouda said:

    Johny, you have to delete the older wp-cache plugin before you can use wp-super-cache. As a newer version it carries some common functions, which is causing the problem. Just delete wp-cache from the plugins directory and this error will go away.

  10. johny why said:

    I thought wp-cache and super-cache are compatible with each other?

    “If you’re logged in or have left a comment you’ll never see a super-cached page. You’ll see plain old regular WP-Cached pages instead.”
    http://ocaoimh.ie/wp-super-cache/

  11. johny why said:

    what are modmime, modrewrite and fancy permalinks, and how do i enable them? are they enabled on Wordpress 2.3 by default? super-cache says they are required:
    http://wordpress.org/extend/plugins/wp-super-cache/installation/

    (i understand, wp-cache is now part of super-cache)

  12. johny why said:

    basically, disabling super-cache on the options page does not really disable caching. you have to disable the whole plugin, and if you don’t clear the cache before deleting the plugin, then your site continues to deliver the cached pages.

    i’d like to request these two behaviors be changed in the next version, if possible. thanks

Say your thought!

Who are you?

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.

freshthoughts

contactme

Abhijit Nadgouda
iface Consulting
India
+91 9819820312
Y!: anadgouda
GTalk: anadgouda@gmail.com
MSN: anadgouda@hotmail.com
Skype: anadgouda
My bookmarks

currentproject

Complete Wellbeing

badgesand...

This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.

Twitter - #mumbai - The city has started working today. The fears are still there, but the spirit will help in fighting it.