Hyper Cache Help

Ask here your questions about Hyper Cache BUT after read the Hyper Cache page: that pages has a lot of information. If you need to asking for help sending piece of code or debug information that are too large for a comment, write me to info@satollo.net.

Of course, be clear when you leave a comment: add a good description of the problem, add the blog address on which you are experiencing problems (in the website field or in the comment text), use a valid email address in the email comment field, otherwise how can I help you???

My excuses for my bad english but it's the only way I have to communicate with you. Would you suggest a correction? Leave a comment, thank you!

334 Responses to “Hyper Cache Help”

  1. Hi Stefano:

    This version of Hyper Cache seems to be best, but I have tested that the autoclean feature is not working. I have 777 chmd on hyper-cache and on cache folder and I have the last version of WordPress.

    Cheers!

  2. Hello.
    Your plugin worked like a Charm.
    But The statpress reloaded stats AND postviews are messed up.
    How can I make sure that all the stats keep getting in?

    Thank you again for a wonderfull plugin.

  3. Hi.
    This is the second comment I publish because the first one was not published.

    This is a great plugin but I found it messed up my statpress and postviews stats.
    How can I make sure that the postviews and statpress stats will remain intact?

    I other words does cached pages show in the stats?

  4. Thank you for nice plugin!
    I’d like to ask you about when comment is added.
    I configured Hyper Cache setting like this

    Cache invalidation mode : Only modified posts
    ✓ Invalidate home, archives, categories on single post invalidation

    But Hyper Cache doesn’t make new cache file when comment is added.
    How do I configure Hyper Cache setting let to make new cache file?

    Thank you.

  5. Hi There,

    I was wondering if there is any plan to enable a option to have a different cached version of each page depending on the Referer header… I use a plugin that generate a specific box depending of the keywords use from a Search Engine referal and I have pretty ugly result when this version is cache :-(

    Other way to workaround should be to flag something in the template that make the page rendering uncacheable.

    Thanks for this great plugin.

    Antoine

    • Hyper cache declare a global variable “hyper_cache_stop”. If set to true by someone, the cache do not store the page.

  6. Hi, thank u for the great work.
    Is it possible to invalidate home,archive, category on scheduled post published?
    It means each time scheduled post is published by system,home page can get latest
    post.

  7. I use Hyper Cache on almost all my clients. Thank you so much for this great plugin.

    But I am having a problema with one client. Sometimes a few pages just refuse to update. It keeps showing old content old content for hours. It’s like the auto clean did not work. It’s a bug or it’s some wrong configuration?

    Thank you.

  8. Hello! Установил Hyper Cache и хочу, что функция “Home caching” была включена, но она не работает – index.php все равно кэшируется. Подскажите, почему?

    Hello! Hyper Cache installed and I want that feature “Home caching” was included, but it does not work – index.php is still cached. Show you why?

  9. Hi, thank You for the great work!

    On one of my sites under control of WP MU (hyper-cache 2.6.3 is connected on all sites) there was a following problem (has appeared from version 2.6.2):

    [Mon Nov 16 13:46:28 2009] [error] PHP Fatal error: Call to undefined function is_home() in ***/wp-content/plugins/hyper-cache/cache.php on line 244

    line 244: if (is_home() && $hyper_cache_home)
    {
    return $buffer;
    }

    Prompt in what the reason,
    I thank!

  10. Hello,

    Hypercache fails to clear the cache upon creation a new post. I have to manually clear it with every post change. My settings are Cache Invalidation Mode: all cached pages, and I checked the box “Invalidate home, archives, categories on single post invalidation.” This has been going on for some time now and across numerous Hypercache versions. I never posted problem before as I hoped it would be solved in an update. Any suggestions? Thanks! Chris

  11. Hi,
    you wrote:
    September 16, 2009. URGENT!!! PLEASE DISABLE THE HTML OPTIMIZATION OR Hyper Cache 2.5+ DOES NOT WORK PROPERLY.

    I don’t find any HTML OPTIMIZATION tab at my WordPress 2.8.6. installation, but I’ve the problem that Hypercache is caching 2-3 sites only :-(
    Please let me know where I can find the html optimization tab and how do I get Hypercache working properly.

    Thanks!

    Erik

    • I also have this problem. I’ve been making some changes

    • I also can’t understand this message.

      The plugin seemed to work ok for a bit, but I’ve been making some changes and cleared the cache, and since then the plugin always reports only 1 file cached…

      (please ignore my other comment; I didn’t mean to press submit!)

  12. Stefano, thank you for this great plugin. I am a happy user. However, there is one feature I am really missing. I’d like to have an apache time-interval triggered caching option – like in the Ask Apache Crazy Cache plugin.

    Any chance of you adding this feature?

    Regards,

    Henk Jan.

  13. Hi Stefano, fantastic plugin you have here. I was wondering what effect the caching would have only other plugins like Akismet and Spam Karma which are designed to prevent spam. I believe that SK2 has a work-around for wp-cache but I’m not sure it will work with hyper cache. Do you use or could you recommend any plugins to prevent spam that will work with your plugin? Thanks!

    • I use akismet on all my blogs with hyper cache with no issues. Spam is intercepted correctly.

      • Thanks Stefano. I’ve had it running for a day now and it does seem like both Akismet and SP2 are working fine and still catching spam. I love the plugin so far!

        On another note, I don’t know if you’re aware but Bad Behavior says that your plugin is “Broken” when used with their service. I don’t use Bad Behavior myself since it blocked me out of my own site a few times and I don’t want to risk the same happening to my visitors. I thought I’d give you a heads up though in case anyone else using Bad Behavior runs into problems:

        http://www.bad-behavior.ioerror.us/2009/12/03/beware-of-negative-caching/

        Thanks again Stefano.

  14. Hello there. I really would like to use your plugin, but I cannot because I don’t have a WP-LANG line or LANG line and I don’t know exactly where to put it in my WP-CONFIG file. You’re instructions are a bit vague…so I’m asking for more help. My webhost (justhost.com) friggin shut down my site the other day and said I was taking up too many resources…Idk how I was, but I think it has something to do with plugins or something. They put my site back on, but I can’t afford a dip in viewership like that again. Please help me as sooooon as you can. Thank you.

  15. Hello Stefano, I use HyperCache 263 with Web Optimizer 65 (but really 66) on WP 286. This combo gives improved YSlow from 63 to 90.

    But I have some users that are complaining about getting cached pages and not seeing most current content or comments.

    I have attached screen shot of HC settings page.

    I have read the notes on your page where one can choose between all-post-none and I cannot find this setting on the page, as I think I need to invalidate cache with every post and comment.

    Please advise

  16. Hello, I’m Italian and I do not speak English well;) I have a problem with hypercache http://www.tvdream.net I use in my site a few months. I have a problem with the graphics of the site. When I hypercache active, sometimes the theme that I use for my blog you see evil, and it will automatically activate the standard theme of wordpress kubrick. Why? How can I do to solve this problem?
    Thanks

  17. Is it possible to hack/change hyper cache so that a new comment submission or a comment moderation will no longer be considered like a post modification? I use Disqus commenting plugin, which pulls up the comments remotely from disqus’s servers using javascript, thus a new comment doesnt need to create a flush of the homepage, archive page, and post pages. However, I want it to still flush the single post when the post content itself is edited or modified.

    Any help?

    • May be it can be done searching for worpress hooks and setting and internal state, because a new comment “calls” the edit_post wordpress that is used by hyper cache to intercept the post modification.
      I have no time right know to look at it, may be in the near future.

  18. Hi,

    I have been using Hyper Cache for a while now but as of wordpress 2.9 I get a blank page in Google Chrome. The page actually loads fine (I can see it load), then it disappears. As soon as I turn Hyper Cache off, the site goes back to normal.

    It doesn’t seem to happen in firefox thou.

    Any help would be great.

    Thanks

    Bruce

    • Uhm, it’s a strange behaviour, specially because it’s a chrome problem so hyper cache is serving the page. Have you tried to clear the hyper-cache cache anche the chrome cache and restart from a clean situation?

      • Just tried that solution and it doesn’t work. I have a feeling it something weird with a javascript error from facebook which only glitches on chrome (mac version) when hypercache is on. I have left it on for the moment. Feel free to have a look.

  19. can you please update changelog for 264? thanks.

  20. Hi,

    Sometimes it starts working.. and the next minute it will not.. very very shaky plugin.. wasted whole date with it and i am still not sure how it works.

    Sometimes my pages starts coming from cache, and then in next minute it will take page from database. I have set the Cached pages timeout=0 but still no use. Seems like there is a Major bug there.

    Regards

    • My plugin works rightly for so many people that I’m sure it’s good and not shacky. If it doesn’t work on your blog, simply do not use it. If you want support to understand what is not working in your blog, you can kindly ask giving me some information on how you test it. Still, you have not added your bog url to the comment, how can I be of any help?

  21. Automatic updating, from version 2.6.3 to version 2.6.4, wouldn’t work here. Unable to delete old version?

    How can I do to solve this problem?

    regards,

    • just checked hyper cache IS working on your site

      • Thank’s Stefano,

        Yes it work’s A-okay with 2.6.3, that’s not the problem.

        I wanted to update from 2.6.3 to version 2.6.4 but with auto update via WP it won’t update. (failure: unable to delete old version ?) That’s why I’m back to version 2.6.3

        Richard

        • solved . . .

          I decided to deinstall version 2.6.3, now up and running with a 2.6.4 install.

          By the way is there any option to cache all the posts on my entire blog at the same time, like “Crazy Cache”.

          Richard

  22. I just installed Hyper Cache the other day. I love it so far, works perfect! :)
    I was wondering, I’m using 0 minutes for cache timeout to keep the cache valid a long time, but that also means that 404 pages might be cached for a very long time (and I get plenty of those since a reorganization of the url’s).

    Is there any way to disable caching of 404 pages?

    Keep up the great work!
    Cheers!
    Johan

  23. Hi Stefano. I’m running into a problem with using Hyper Cache and Spam Karma 2. There’s a part of that plugin (specifically a payload plugin) that needs to insert dynamic HTML into the page before a comment is submitted. I found a workaround using the mfunc tag (with WP-Cache) but I’m not sure if this applies at all to Hyper Cache. You can see the fix here:

    http://quentin.unblog.fr/wordpress-mu-wpmu/wpmu-caching/full-page-cache-with-wp-cache-in-wpmu/

    Would I be able to do the same thing with your plugin and have it work? Basically modify the Spam Karma 2 payload plugin (add mfunc) and append the function to the bottom of advanced-cache.php?

    Thanks for your input and your great plugin!

  24. An excellent rock stable plugin. Thanks very much for all your hard work!

  25. First of all, congratulations for your great work! I have been using HC for a while and it always worked perfec :-)

    However, I would like to know if there is a way to avoid some code on your site to be cached (so that it is dynamic)… I was thinking in something similar to the use of “mclude” in Super-Cache.

    Thanks,
    Kiko

  26. hello,
    I use hyper cache and it works very well, congratulations!
    I would like the ‘Subscriber’ users to see the static pages.
    I am a programmer and I could make the change to the plugin if you could guide and tell me where to make the changes. I’d be grateful.

    ciao,
    io uso hyper cache e funziona molto bene, complimenti!!
    Io ho una necessità, vorrei che gli utenti ‘Subscriber’ vedessero le pagine statiche.
    Io sono un programmatore e potrei effettuare io la modifica al plugin, magari se mi potessi guidare su dove effettuare le modifiche te ne sarei grato.

  27. I need your help! I’d have to install wp-ban plugin for my blog, but it doesn’t work with super cache plugin. It will work with hyper cache plugin, isn’t it?

  28. When a banned visitor (WP-BAN) visits the site, whatever page they hit returns a ban message rather than the desired page. The ban message gets cached, then every subsequent visitor to that page gets the ban message too.

    How can I prevent ban messages from being cached?

    • Ban IPs from within the cpanel provided by your host and lose the plugin

    • It’s wp-ban that need to recognize a cache system and ask the cache to stop. with hyper cache it’s easy. Clearly even a cache system can recognize the banned status and do not cache the page, but I have no time to understand how wp-ban works and if it’s easy to integrate with it.

    • Just another note: wp-ban, I image, activate it self on wordpress activation so it can ban after wordpress initialize it self and maybe other plugin. So bypassing the cache to let wp-ban to work means to let the banned client to waste resources on your server… :-)

  29. How do I know the cache is working properly?

    When I click “show code” on some browsers, this line is displayed:

    However, in other browsers, the code does not appear.

    How do I know it’s caching correctly? If the code isn’t shown in the source code, does that automatically mean that the cache is not working?

    Thanks, and keep up the great work!

    James

    • Cache is not browser dependent, but if you browse the blog with a browser you use to admin the site, cache is bypassed (admin always see the fresh content).

  30. hi Stefano,

    I had the same problem as steve519 while i was using hyper cache. please check the error picture:
    http://iloveblog.cn//Uploadfiles/2010-2/1.jpg

    I like hyper cache very much but I could not use it untill this problem is solved.

    Could you help me? Thank you in advance.

    PS: I am using Linux+lighttpd VPS

    • Disable compression, maybe your configuration is messing up (but I’m not sure) the http headers set by hyper cache!

      • Thanks for your prompt reply.

        I already tried, but nothing happened.

        what is more, if I use IE to browse the error pages, it asks me to save the page but not open it.

        • Hey,

          Just chiming in. I have kinda the same problem. When I activate Hypercard it works PERFECTLY in in Chrome and Firefox. In IE though it displays gibberish (see screenshot).

          Compression is not activated in the plugin. Any idea what could be causing it? It’s seriously the best cache script so far, so I would love to use it.

    • Is there a fix for this yet? I have turned off Hyper Cache after just a couple of days. Had three readers report it, but I never saw it myself. One of them checked the source and said it ended with

  31. Hello there, i have a suggestion for next version. actually two. very usefull ones:

    1- Add a button or a tag inside the page/post editor for a code to not be cached. like i add [hypernotcache] here is my code [/hypernotcache]. if it is possible. that will do big help to alot of people, it can also be included on sidebars for people who doesnt want some widgets to be cached.

    if this increases server load then skip this suggestion.

    2- Add an option for usergroups to not skip cache content. like for admin, he gets fresh copy of the page. but i want the cached one.

    thanks

  32. Hey there, still didn’t got ur answer, anyway. i am having an error whenever i press Update button. Here:

    Warning: fopen(/home/spormcom/public_html/wp-content/advanced-cache.php) [function.fopen]: failed to open stream: Permission denied in /home/spormcom/public_html/wp-content/plugins/hyper-cache/options.php on line 39

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/spormcom/public_html/wp-content/plugins/hyper-cache/options.php on line 40

    Warning: fclose(): supplied argument is not a valid stream resource in /home/spormcom/public_html/wp-content/plugins/hyper-cache/options.php on line 41
    Hyper C

    • Really I don’t remeber your last question, I have too many comment and too many email. Your directory are not writeable, I added a control on version 2.6.6 with a message, but I have not tested it. Try.

  33. ok that fixed the error.

    about the other post. its right before my last post.

    Thanks alot.

  34. Hello. I have a site with a lot of photo jpeg images that take approximately six to eight seconds to load up – to much time. The images are already optimized for the web in Photoshop, and are all under 40k in size. Will your Hyper Cache solve that kind of problem?

  35. Hi Stefano,

    Great plugin, congratulations.

    An error on my blog.
    http://www.linkes.com.br

    After filling in “Enviar Link” (send link) and send occurs error in the link. How can I solve?
    Should I put in exception to the plugin folder of the application form and file the form?

    I need to use Hyper Cache because my ISP I took the air again.

    Thank

    Djair

  36. I deactivated and removed hyper cache, but when activating W3 Total Cache get message

    Page caching is not available: advanced-cache.php is not installed. Either the /home/h2c/public_html/wp-content directory is not write-able or you have another caching plugin installed. This error message will automatically disappear once the change is successfully made.

    /home/h2c/public_html/wp-content is write-able. If you’ve finished installing the plugin, change the permissions back to the default: chmod 755 /home/h2c/public_html/wp-content.

    Your tech notes say to remove advanced-cache in wp-content, but that file seems to have been removed. Is it invisible? Otherwise, what other extent Hyper Cache files need to be removed and what are their locations?

    • Check if the file advanced-cache.php is still there on wp-content folder. I leave it there because upgrades get worng if poeples make un-writeable the wp-content directory. Simply, delete it.

  37. hi,
    I am new to hyper cache. We are having problems with wp-super cache. Would like to use hyper cache. Do we have to use db-cache with hyper cache? or just hyper cache .
    And also, wondering if we can cache the 500 errors with the hyper cache.

    thanks for your help in advance.

    • Uhm, 500 errors are generate, usually by apache so there is no way to intercept them with PHP, but I’m not so sure. Why you have 500 status responses?

      • thanks for your quick reply.
        I do not have them in the system. But just incase , if any url throws the error , would like to cache it for certain amount of time.

  38. Hello, in your installation document you said that the cache folder was “/wp-content/hyper-cache”. i installed and it showed no warning but there is not such folder , i checked “/wp-content/plugins/hyper-cache/cache” too , there’s nothing but a 0 byte test.dat file , and “/wp-content/cache” nothing too

    wp2.92,bluehost+linux

  39. /wp-content/hyper-cache-config.php
    i also could not find this file exist

  40. Hello,
    It’s working great so far.
    How can I tell if the feeds are really getting cached.
    I do not see the hyper cache comment in the feed source. I did select the cache feeds option from the hyper cache options page.

    One more hyper cache question.
    Old cache files are not getting deleted. I have the Cached pages timeout as 10 mins and the
    Cache autoclean as 8 minutes. Are there any additional steps required for the auto clean up?

  41. Sorry for bad English. Excellent plugin and I use them in 4 blogs. Dear author tell what settings you recommend for “Cached pages timeout” and “Cache autoclean” to maximize savings (reduced load) RAM (memory) on the server? The site is updated 1-2 times a day, visitors 1500-2500. And is there a need to include cache feed if you use feedburner?

  42. Hi Stefano,

    great work!!

    I am curious though if it is possible or planned in the near future to easily exclude certain pages (not only home page) from being cached (let’s say through putting a keyword inside the code of a page like [DONTCACHEME] -> my question is inspired by this http://www.mediawiki.org/wiki/Extension:NoCache)

    Or is it maybe possible to easily hard-code that within options.php, cache.php or similar?

    Or is it easily possible to determine which filename in cache-directory maps to which url? Is the file name just the md5-string of the Url cached? So I could delete it myself through a php-script if necessary?

    In my case this would allow me to call certain wordpress pages by cron job – with all the wordpress environment variables and most importantly with all calls to all plugins intact, that work best if called several times a day — without having to invalidate the rest of the wordpress pages..

    Thanks…

  43. Hi!

    After testing a bunch of cache plugins, I finally found this one which is in my opinion the best. Thanks for doing this!

    I have one problem though..

    The cache is disabled for LOGGED IN users, and since most of my users are logged in, the cache is doing nothing to them.

    Is it possible to tweak the plugin so that it gives you the cached version ALWAYS whether you are logged in or not?

    Thanks.

  44. I used Hyper Cache on shared servr at bluehost with Webo Site speed up.

    Can I use same combo at new cloud host with cdn?

  45. Following on from comment http://www.satollo.net/hyper-cache-help#comment-1198 about Bad Behavior and Hyper Cache – it does appear that Hyper Cache still has a problem with caching Bad Behavior error pages, as I’ve just discovered on a site of mine.

    According to the author of Bad Behavior http://www.bad-behavior.ioerror.us/2009/12/03/beware-of-negative-caching/ Hyper Cache shouldn’t be doing this.

    “To be perfectly clear, this is a problem with the cache, not with Bad Behavior. The HTTP standard, RFC 2616, explicitly prohibits caches from “negative caching,” or storing the types of 4xx error pages which Bad Behavior serves to illegitimate requests. (The only cacheable error is 410, and Bad Behavior does not use this error.)

    Currently I know of two WordPress caches which have this problem: Hyper Cache and W3 Total Cache. There is currently no workaround; to resolve the problem, either Bad Behavior or the caching plugin must be disabled.”

    It would be great if this could be sorted. Otherwise extremely useful.

  46. Hi !
    I have a problem with my feed when i check “Feeds caching”…
    See here the problem : http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fnsfw.the-gamer.fr%2Ffeed%2F

    Thx a lot for you help.

  47. Is this still incompatible with WordPress MU?

    Thanks! Works like a charm on single install. It seems to work on WPMU, but the images do not display.

    -Marc

  48. Hello Stefano,
    I would desperately love to use your HyperCache but it conflicts with eshop (http://quirm.net/forum/) and although I have asked Rich to change his eshop and sent him some technical doc on how to access the database, he says he will not. Could you please point me in the direction of how to best make these two great plugins work together? Eshop displays an empty checkout page when Hypercache is activated. Is there something in Hypercache Advanced Settings like Agents to Reject, or Cookies, that I can set from the front end ?
    Kind regards, Jacinta.

  49. Hi Stefano. Am loving your plugin. So easy and clean. I have a question though, how do I make sure it is sending cached pages to my visitors? I have files in the cache folder, the statistics tell me cache hits are 90% and plain pages served also about 90%. But I am not seeing any improvements, at least not the dramatic ones I’ve been reading about. Is there a way (firebug or any other tool) that I can use to make sure its working as designed?

    Thanks a lot!

  50. Hi Stefano, thank you for this great plugin. It has been my life saver since wp super cache and wp cache are creating problems for me.

    But I have one problem here as well. I use a custom from page called home_page.php and the blog’s home page is displayed with the same. So, when I check the checkbox which says “DO NOT cache the home page so it is always fresh”, even than my front page is not getting refreshed. It is still showing the cached page until I clear all the cache pages.

    That is tough specially when there are lot of traffic hitting the website. I have to wait till the traffic subsides and then clear the cache, so the front page is refreshed very few times a day.

    Please suggest how to make it work.

    Best regards,
    Kumar

Trackbacks/Pingbacks

Leave a Reply