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!

430 thoughts on “Hyper Cache Help

  1. Ciao!
    E’ possibile fare una cosa del genere?
    global $hyper_cache_stop;
    $hyper_cache_stop = true;

    //lavoro sulle funzioni che non devono avere caching

    //riabilito la cache
    $hyper_cache_stop = false

    Funziona?

  2. Hyper-Cache is working very nicely, but when I just turned on WP_DEBUG I see the following errors in my PHP.log:

    PHP Notice: Undefined index: notranslation in /www/zendsvr/htdocs/news/wp-content/plugins/hyper-cache/options.php on line 5
    PHP Notice: Undefined index: feed in /www/zendsvr/htdocs/news/wp-content/plugins/hyper-cache/options.php on line 244
    PHP Notice: Undefined index: plugin_mobile_pack in /www/zendsvr/htdocs/news/wp-content/plugins/hyper-cache/options.php on line 272
    PHP Notice: Undefined index: mobile in /www/zendsvr/htdocs/news/wp-content/plugins/hyper-cache/options.php on line 282
    PHP Notice: Undefined index: notranslation in /www/zendsvr/htdocs/news/wp-content/plugins/hyper-cache/options.php on line 370
    PHP Notice: Undefined index: lastmodified in /www/zendsvr/htdocs/news/wp-content/plugins/hyper-cache/options.php on line 380
    PHP Notice: Undefined index: home in /www/zendsvr/htdocs/news/wp-content/plugins/hyper-cache/options.php on line 390
    PHP Notice: Undefined index: strip_qs in /www/zendsvr/htdocs/news/wp-content/plugins/hyper-cache/options.php on line 417
    PHP Notice: Undefined index: cache_qs in /www/zendsvr/htdocs/news/wp-content/plugins/hyper-cache/options.php on line 433

    Obviously these are just PHP warnings, but it’s good to keep your error log clean, so the only errors are REAL ones.
    Is it possible to fix this please?

  3. I have lost some of articles on my Database, and trying to get them back from cash files.
    I found many of cash file (i.e. cb9d6ac8153cf4a9f431ba308ad191df.dat) in the /wp-content/cache/hyper-cache directory.

    However when I open the dat files, every file shows encoding problem, I tried to read the dat file with utf8, S-JIS, most of the other encoding, I never read properly.

    Do you think is it possible to recover the text information from those dat files?

  4. after i login i get this:

    Fatal error: Call to undefined function hyper_count() in /home/someuserhere/somesitehere.com/wp-content/plugins/hyper-cache-clear-link/hyper-cache-clear-link.php on line 30

    Plugins folder doesn’t have any folder starting with Hyper.

    it appears the hyper-cache-clear-link plugin has an issue, but the plugin folder doesn’t exists, and i searched root and wp-admin for “hyper” trying to catch and remove the hyper_count() fatal, but couldn’t find any file with such term.

    wp-config file also doesn’t contain the define WP-CACHE entry.

    What should i manually remove and from which wordpress file, in order to gain admin control back in /wp-admin. sidebar looks ok, just any link from admin sidebar gives me the same FATAL error above.

    wordpress version 3.8.1
    I searched all this site KB and couldn’t find an answer.

    Please help.

    1. Probably on cloudfront you should use a plugin that rewrites the image and script urls or play with the DNS settings. AWS is really powerful, it does not really need plugin. Anyway there are more complex cache plugins which probably take advantage from cloudfront.

  5. Hi there,

    Your plugin was working really good for a short time. Then suddenly all the files in the cache disappeared and I can’t get anymore cached files with the plugin.

    Any idea why?

    Thx a lot

          1. I understood you, but hyper cache does not integrate with CDN. And every CDNhas a different way to work. You should ask the CDN provider how it work and if there is a plugin to rewrite the URL so they are served by the CDN.

  6. Hi and Happy New Year,

    I just started using the Hyper-Cache plugin but I need your help.

    In the homepage I use the “Random Content Plugin”, so every time a visitor refreshes the home page to see a different image. Of course after using a cache plugin this is not going to happen :)

    But As for the “Cached pages timeout” value I left the default (1440 minutes), which is a day.

    So, I was hoping that everyday the image (from random content plugin) would be different. But it isn’t.

    Any help/suggestion?

  7. Hi thanks for your plugin!

    I try to manage the use of detection of cookies in order to not send the cache version to some visitor who have a plugin like that clic[31274]. So I put this cookies name in the hyper cache settings but unfortunately if the cache already exist it will be deliver to this cookie visitor. Do you know if I miss something or if I made a mistake somewhere?

    Thanks for your kind help

  8. Hey man, thanks for this awesome plugin, it works like a charm. I just have one question about the configuration for mobile devices.

    I’m using WP Mobile Pack, so should I check both boxes for “enable integration with WordPress mobile pack…” and “Detect mobile devices,” or just the one for WP mobile pack?

  9. Salve, volevo sapere se è possibile eliminare dalla cache il widget WordPress Popular Posts?
    Chiedo questo perché avendo attivato Hyper Cache il widget WordPress Popular Posts non aumenta piu le visite.
    Grazie di tutto.

  10. Hello Stefano, how are you? First I would like to thank you for such a great super cache plugin.

    On the WordPress site FolioVision has found a bug in the code and has posted a solution which I have tested and it works. Also evo252 has posted another option to add to the solution. I was wondering if you could release a version with this update after you tested it yourself of course.

    Here is the link http://wordpress.org/support/topic/cache-invalidation-issue-static-front-page?replies=17

    Once again thank you very much for your hard work and a great plugin.

    PS I have sent you an e-mail in regards to helping you edit your English translation on your website. I am still waiting for your reply if you are interested for my help.

        1. Hi Alex to exclude a page or post simply enter the URI in WordPress Admin >> Settings >> Hyper Cache >> Uri to reject….

          Make sure that your URI starts with a / slash in front i.e /blog/

          I hope this helps you.

          Kind regards

  11. Hi!
    WordPress 3.5.1
    Hyper Cache 2.9.1.2
    /wp-content/cache/hyper-cache (0777)
    No errors in the admin area. I come out of admin and I open the browser to the site. In the directory / wp-content/cache/hyper-tsache not appear any files and “Files in cache (valid and expired): 0”
    I tried to move a site to different hosting. Perhaps there is a conflict.
    How to find a mistake?
    Thanks!

  12. Hi Stefano and all,

    I have my HOME page as a static page on Settings –> Reading. But it is not properly cleared when I do a post modification, although I’ve done the modification proposed by FolioVision at http://wordpress.org/support/topic/cache-invalidation-issue-static-front-page?replies=3

    (And Cache invalidation mode -> Only modified post; and “Invalidate home, archives, categories on single post invalidation” is checked).

    Any ideas or help?

    Thanks in advance for your support.
    Jesus

  13. Hi Stefano,

    Hyper-Cache was not working for me because I use a different folder for plugins, so inside “advanced-cache.php” I had to change the include path to match mine.

    Thank you for this great plugin!

  14. Hi Stefano,

    Long time user of this great plugin. Noticed that the latest version (2.9.1.2) says that it has not been tested on multisite – just want to let you know that I’ve been using it on a few multisite installs (with subdomains and subdomains mapped to other domains) for a while with no problems – it works flawlessly!!

    Question: is using the function hyper_cache_invalidate_post the best way to clear the cache for a specific page? I need the cache for a page post type to be refreshed/cleaned by a plugin

    Thanks!

  15. Just recently, I upgraded plugin to 2.9.1.1 version and it stop to work. But I found that it start to write a file wp-contentadvanced-cache.php in a root instead of /wp-content/advanced-cache.php
    So, the bug is in plugin.php line #59
    look for
    $file = @fopen(WP_CONTENT_DIR . 'advanced-cache.php', 'wb');
    and replace it to
    $file = @fopen(WP_CONTENT_DIR . '/advanced-cache.php', 'wb');
    As you can see the difference – just a slash missing before advanced-cache.php

    After all, plugin works just fine for me: helps a lot and simple enough.

    1. Just recently, I upgraded plugin to 2.9.1.1 version and it stop to work. But I found that it start to write a file wp-contentadvanced-cache.php in a root instead of /wp-content/advanced-cache.php
      So, the bug is in plugin.php line #59
      look for
      $file = @fopen(WP_CONTENT_DIR . 'advanced-cache.php', 'wb');
      and replace it to
      $file = @fopen(WP_CONTENT_DIR . '/advanced-cache.php', 'wb');
      As you can see the difference – just a slash missing before advanced-cache.php

      After all, plugin works just fine for me: helps a lot and simple enough.

  16. Ciao Stefano, spero sei Itlaino perchè se devo scrivere Inglese povera me e infatti non capisco bene la guida.
    Io Uso la 2.8.0 per motivi di server e php ( win server- php 4) ho in una pagina mingle forum e non riesco ad invalidare la cache per quella pagina quindi se postano e escono da login non si vede. Purtroppo la cache non si pulisce automaticamente devo farlo a mano.
    Come posso escludere la pagina o il forum? Grazie mille.

  17. I have a newspaper website which need to update information frequently (You can think about update more than 100 posts/day). I used W3 Total Cache, WP Super Cache and i think WP Super Cache worked just fine for me (only one project that i seem cached for category too long, need to clear the cache manually to refresh).

    However, i am using a low speed host and i need to improve the speed as much as possible. That’s why i give your plugin a try. Everything is OK except one important thing, sometime the data seem did not refresh if i don’t click on refresh button of the browser (i used your plugin parallel with DB Cache Reload Fix plugin)

    For the newspaper like my page, i wonder if you could show me what is the best setting to make sure that user always see the latest information?

    Thank you very much in advance.

  18. Hello,

    I use your plugin often. I recently updated one of my clients WordPress installs to 3.5 and have found that Hyper Cache is not working, or maybe I am missing something.

    The _archives.dat file is created but no other files. The “Files in cache (valid and expired)” always shows “1”.

    So it seems pages are not actually being cached.

    Note: 3.5.1 has the same issue.

    Please correct me if I am wrong.

  19. Hyper Cache создает кэшированные страницы, но при проверке работы плагина в конце исходного кода страницы отсутствует строка типа , подтверждающая, что страница взята именно из кэша. Так работает ли плагин в таком случае?

  20. well the problem is that i can’t seem nor my cutomers to log out of the website.

    i used to go with w3tc but it actually slowed down the site for me so i moved to hyper cache and felt a great difference according to speed.

    i faced this issue while using w3tc but i solved it by excluding homepage out of cash. now i am using hyper cache and cloudflare but i cant log out my website. i am using a login/logout widget and it redirects to the home page on logout at all unless i clear the cache and then refresh the page.

    to be more specific i opened the site in a different browser and logged in as a customer then tried to logout from the homepage but it kept saying that i am logged in and when i press logout again it showed me a wordpress notification saying

    “You are attempting to log out of Natateef

    Do you really want to log out?”

    then i cleared the cash and refreshed the page and it showed that i am logged out.

    i tried this with “Home caching” checked and unchecked but it did not make any difference. i still can not logout untill i clear the cash! :S

    i did uncheck the “Redirect caching” option hoping that it would solve the issue but still it did not.

    i also did add a page rule at cloudflare to exclude my homepage from cashing so i know that it’s not a problem with cloudflare, actually it’s obvious because the status changes to logged out when i clear the cache in the hyper cache plugin.

    so please tell me how to solve this problem,
    best regards,
    Ahmad Afaneh.

  21. Hi Stefano.

    Looks like the autoclean is still not working on some of my sites. The date and time do not change unless I deactivate/activate the plugin. I re-enabled wp-cron to run and made sure the: define(‘WP_CACHE’, true); is in the head of wp-config as you instructed.

    I am at a loss as to why this is happening. Any ideas I can try?

    Thanks
    JD

    1. No there is no way. Single.php is only a template file, it can be called to generate posts, pages or even other type of custom post. In few words, single.php usually generates almost all the blog pages.

  22. HyperCache cleanup is not running as scheduled as the plugin sets it up when installing. I deactivated/activated and the date/time stamp changes as expected but the cleanup still does not run. In 48 hours the cache shows 151 items. I am assuming there should have been a cleanup within that 48 hours.

    Does HyperCache use WP Cron to run cleanup? I have WP Cron deactivated in the wp-config.php file. Could this be the problem?

    Thanks

  23. Hello again !
    It’s ok, I found the solution !
    I created my own version of your hyper_cache_invalidate_post($post_id) function into my plugin to invalidate and delete the cache page I need 😉

    thanks again for your plugin !

  24. Hello Stefano !

    Really awesome plugin, I use it for a while, really nice.

    I have a question. I work on a plugin that display content inside a page or a post using a shortcode. But when the content provided by the shortcode change, of course the post or the page is not “modified” in the classic wodrpress way but I need to invalidate the post/page to regenerate the cache for it. Have you an idea how to do it ? Is there a method or a function I can call or a header value to pass to tell hyper cache that this page cache must be regenerate ? I looked into your code but I can’t figure how to do this…

    Thanks in advance for your help !
    And eagain, great plugin !

  25. Hi Stefano,

    Installed Hyper Cache for 4 days, ever since statistics like NewStatPress and my own php stats (php line at the bottom of the page made in footer.php) decreased to 25%.
    Any idea to solve this ?

  26. Hi Stefano, we recently switched to Hyper cache (installed on http://free.com.bz/blog/ ) after running some benchmark results in comparison to W3 Total cache. With that cache we got a page speed loading time of 4.60 seconds for First View, and 0.46s for revisit. The First Byte was 0.45 seconds. Then we implemented Hyper cache and found that our page speed increased by almost 40% as compared to W3 total cache. Hyper cache benchmarks were: First View 3.35s, and and 0.44s for revisit. The First byte was within 0.26 seconds which is almost 40% lesser (and thus faster) than W3. With added plugin WP File Cache that works with Hyper Cache, we were further able to increase page speed of First View and decrease the First byte time.

    Your Hyper cache is really neat, easy on hands and lite-weight.

    SUGGESTION: Like W3, if you could please add function to cache database queries and object query cache, then we’ll not need to use extra plugin for the same.

    Thanks a lot for great plugin.

  27. Hi

    I have an issue with Hyper Cache. My logs are full of this:
    [Sun Aug 05 10:35:43 2012] [error] [client 61.160.232.10] PHP Warning: fopen(domain_name/wp-content/plugins/
    hyper-cache/cache/0207fdb8c8100f96ef9f1301cc99f5b2.dat): failed to open stream: No such file or directory in domain_name/wp-content/plugins/hyper-cache/cache.php on line 295
    [Sun Aug 05 10:35:43 2012] [error] [client 61.160.232.10] PHP Warning: fwrite() expects parameter 1 to be resource, boolea
    n given in domain_name/wp-content/plugins/hyper-cache/cache.php on line 296
    [Sun Aug 05 10:35:43 2012] [error] [client 61.160.232.10] PHP Warning: fclose() expects parameter 1 to be resource, boolea
    n given in domain_name/wp-content/plugins/hyper-cache/cache.php on line 297

    (domain_name is an edit by me. originally it was the local path to the WP directory).

    Is there a problem with my configs or is it a bug?

  28. Stefano, thanks very much for making Hyper Cache available. I have used WP Super Cache at several websites for years, but changes in recent versions made it unreliable. I switched a new website I am developing to Hyper Cache a few days ago as a test and I am very pleased. Your instructions are clear (trivial English errors, but easy to understand). Installation and configuration are both simple. Best of all, everything works exactly as expected with no problems whatsoever.

    The new http://www.dorettasmith.com site where Hyper Cache is installed is a real estate website. There is still a considerable amount of work to do before it will be finished, but there are currently about 2600 real estate property listing pages. Some of those listings change each day. A CRON job runs wget with its –no-cache option after midnight each night to recursively reload each page and prime Hyper Cache for fast access during each following day. That works very well and cached pages load in remote client web browsers in about 1/3 the time required without caching.

  29. hi and good daytime! My question is : how can I specify a subnets or IP addresses to be bypassed by caching? For example : an external site crawling tool from a static IP I know must be served by WordPress without any caching. UserAgent bypass is not an option here – it can be changed or not specified at all. Thanks! :)

    1. Hi:
      I set the cache pages only for 2 recent days and works very well, now the server is not busy making and deleting cache of other days, specially with bots who generate a lot of “trash cache” of old posts.

      Try put this code in your header.php after and before tag:

      post_date)

      I waited many years to find that this cache configuration is the solution for sites with many visitors. I hope this can hel to you.

    2. Hi:
      I set the cache pages only for 2 recent days and works very well, now the server is not busy making and deleting cache of other days, specially with bots who generate a lot of “trash cache” of old posts.

      Try put this code in your header.php after wp_head(); and before body tag:

      (Write an open php sign here …)
      global $post, $hyper_cache_stop; if (strtotime($post->post_date) < strtotime('-2 days')) {$hyper_cache_stop = true;}
      (Write a close php sign here…)

      I waited many years to find that this cache configuration is the solution for sites with many visitors. I hope this can hel to you.

        1. Hello sert:

          That is very clear to me. Just go to Settings >> Hyper Cache, and modify the field called “Cached pages timeout”:
          720 minutes is half a day, 1440 is a full day and so on. Is that your question?

          You would to set “Cache invalidation mode” in “Only modified posts” and put a check on “Invalidate home, archives, categories on single post invalidation” to keep always fresh your home page too.

  30. Will clicking on the “clear cache” button mess up the website in anyway? I’ve always assumed that caching plugins cleared caches on their own every now and then anyway.

    And if it does sometimes mess up the website, what’s usually the reason?

  31. Hi Stefano,

    I’ve had Hyper Cache on casaveneracion.com for a long time and I love it.

    Question: I have a multi-site install on feastasia.com. Will Hyper Cache work on a multi-site install?

    1. Just my expérience here as I usually use Hyper Cache too and had to deal with a multisite install too.
      After some research, I found out that only the plugin Quick Cache works with multisite. I am satisfied with it.
      And in case you usually use WP Minify for minifying, it doesn’t work either with multisite. The one to use is then Better WordPress Minify.
      I hope this will help,
      Fran

    2. It should work since hyper cache stores the page in a codified file which comprises the host. But full cache invalidation will invalidate every page of every site.

  32. Hi Stefano. Thanks for the great plugin. we have an issue running it lately. When i mobile device accesses a blog page, the mobile page is cached and then also sent to all non mobile browsers.

    or if a non mobile browser visits a blog page first and caches the page, then the non mobile version is sent to mobile browsers.

    we have wp-touch pro installed on the blog also.

    1. You need to enable mobile detection on hyper cache and hope che wp-touch and hyper cache agents are the same (usually they are). Or you can configure the hyper cache user agents for mobile detection.

  33. Hi Stefano,

    I use your plugin on all my wordpress installation.

    I have a strange problem after upgrade to last version. The problem is that if I enable the plugin all the site is displayed with strange symbol. Like square or / or &. All the site pages are displayed with only symbols and no image or word. As soon as I disable the plugin the site works well. If I reinstall the previous versione of hyper cache, the site works correct. Unfortunatly I can’t find no more the previous version and so I had to disable the plugin.

    Can you help me?

    Thank you

  34. Just sent a comment but it’s not displayed (???) So I do it again…

    Problem with the code added in wp-config.php
    When added, the wp site doesn’t work anymore : on backend and on frontend, I get the message :
    Parse error: syntax error, unexpected $end in /homez.483/aljabal/www/WordPress3/wp-config.php on line 1
    And I can’t even login anymore.

    I first added the code juste after the line define (‘WPLANG’, ‘fr_FR’);
    Then I tried to add it at the beginning, just after <?php
    Always the same error message

    For info, I used Hyper Cache on another wp website recently and it worked perfectly. I didn't have that problem when adding the code.

    Do you have an idea of what is not working ?

    Question Nr 2 (more general) :
    On our we backend, on the Hyper Cache page, the message says to add the code just after the line <?php but on your website here, you say to add it after the line define(WPLANG…)
    What the real best way ? and is it important ?

    Thanks for your attention,
    Fran

    1. I am very sorry for having written all this for nothing. Stefano, don’t hesitate deleting my comment and this reply.
      I don’t know what happened but when I re-tried this morning, all worked perfectly fine.
      Thanks again for a great great plugin

    2. A syntax error, means there are something wrong in the code added to wp-config.php. Try to start from the original and add the code again, may be copying from a working wp-config.php.

  35. Thanks Stefano for this good plugin !
    I have a problem though.
    I’ve used it successfully on one site and now I’m having an unexpected problem on another site –> http://www.aljabal.be/palestine_recitsdevoyages.html
    (this site is basically not WP, just html but the box within this page is a WordPress iframe)

    It’s all about the addition of code within wp-confing.php

    1) I added the code just after the line define(WPLANG, ”) as you advise on on website.
    Result, I get the following error message and I can’t login anymore :
    “Parse error: syntax error, unexpected $end in /homez.483/aljabal/www/WordPress3/wp-config.php on line 1 ”
    It’s weird because I di’dnt touch line 1 and it’s just the usual <?php

    I then tried to add the code at the beginning, just after the line <?php but I got the same error.

    The code I added is
    /** Pour plugin HYper Cache **/
    define('WP_CACHE', true);
    /** Fin **/
    It's the exact copy of the code I added on the first site, with which I have no problem

    Do you see what goes wrong ?

    2) More general question : On our wp dashboard, on the plugin page, the message says to add the code just after the line <?php and on your website you say to add it under the line define(WPLANG, ”)
    What is the real best way ? And is it important ?

    Thanks for your attention,
    Fran

  36. I’m trying to get Hyper-cache working on IIS hosting. I noticed that you said it takes some configuration tweaking to make it work but could not find any documentation of this. Google was unhelpful as well. Thanks!

  37. My page with comments is this one –> http://www.ajwan.net/wordpress/livre-dor/

    I just approved a comment. When connected, the new comment is displayed on the page but when I am not connected, the new comment is not displayed. No idea when it will be…
    How come ? An addition of comment is like a modification of post, right ?

    For info, in my Hyper Cache settings, I left all the settings to default. Which means that “Cache invalidation mode” is on “Only modified posts”.

    Can you help ?

    1. Yes you’re right, a comment should invalidate the page. My doubt is about comment approval from administrative side that may be does not call the “post modified” hook. I’ll check it.

  38. Hi Stefano,

    Many thanks for this great plugin. It seems to work very well on my website, but recently I have a problem with my Nextgen Gallery Plugin.

    If I want to click throught it, it doesn’t show the next image. When I refresh the gallery after I cleared the cache, the next image is shown.

    I deactivated Hyper Cache and the gallery worked perfectly.

    Could you help me on this one?

    regards

    Patrick

  39. I’ve been using Quick Cache instead of Hyper Cache on multiple sites. Before that I was using Hyper Cache and I want to go back to using Hyper Cache. The one thing missing from all the cache plugins is the ability to include additional pages to invalidate along with the “modified” ones.

    I have three pages that should be kept current along with all the modified ones: blog page, categories listing page and tag listing page. The important one, however, is the blog page and if you check the navigation on my site, you’ll see what I mean.

    I have no problem adding code manually, that isn’t in the options, I just need to know where.

  40. First of all, thank you for effective yet simpler cache plugin. I have been using this plugin since quite sometime. My site yourstoryclub.com allows multiple members. It also has bbpress. I observed logout not functioning properly when triggered by url http://yourstoryclub.com/wp-login.php?action=logout… User is still shown logged in (wrongly) however she cannot do any member action without login again. Could you please check and fix it – thanks

  41. I’m running the latest version of Hyper Cache, but it seems not to like WPTouch plugin (= for mobile pages). In the web browser, Hyper cache will sometimes serve the mobile site instead of the actual website. So there is a bug collaborating with WPtouch. Current ad-hoc solution is to clean the cache once in a few days. Hope this can be fixed asap.

    Also, many thanks for the great plugin!

  42. Hi, I would like to strip all query strings on the URL, unless the search parameter ( s ).

    If “Strip query string” is set true, the search page become mixed with the home page. That’s not cool.

    There’s a way to strip all parameters that is not the search parameter ??

  43. In old versions of HyperCache there was option to set autoclean time, now in latest version is harcoded to 60 min, what are your having in mind to make that , is better for server CPU to audoclean every hour or lets say every 3-4 days? Thanks. great plugin

  44. I have Hyper-cache installed with the default values. Only my home page is cached. The other pages which will be started from the menubar will not be cached (long wait). The cache counter remains at 1.
    I am not logged in as user!
    What am I doing wrong?

  45. I have Hyper-cache installed with the default values. Only my home page is cached. The other pages which will be started from the menubar will not be cached (long wait). The cache counter remains at 1.
    What am I doing wrong?

  46. I recently upgrades from 2.6.x to the newest version of your super plugin. With the new version I have the problem that my pages outside the wp directory /blog/ are not cached anymore. Especially on my homepage this is a serious problem because of the traffic. Here I use “require(‘blog/wp-blog-header.php’);” to call wordpress funtions. The blog is in the subdirectoy /blog/ In the old version this page and others outside the wordpress directory have been cached. Is this still possible?

    1. Remove the plugin and the advanced-cache.php file inside the wp-content dir. Check is you modified in the wrong way the wp-config.php. Restore it to the orginal one from the backed up version.

  47. I installed Hyper-Cache tonight in hope of speeding up my sluggish wordpress website. After hitting the “empty cache” button on the plug-in in the plugin settings…. my site suddenly DOESN’T LOAD anymore. I can’t access the site or the admin panel.

    Can anybody tell me what I should do? I removed the plugin AND the php code from the wp_config.php file… but NOTHING IS WORKING and the page won’t load at all.

    Any help, please? Its urgent. Thank you people.

  48. Stefano said – There is an option on hyper cache admin panel o enable url with query parameters caching, is it not working?

    Answer – Yes it is working but it requires one to read through the panel with brain engaged! Doh!

  49. Dear Stefano,

    Great caching plugin – thank you so much!

    I’m running it on a website with 2,500 posts and the load time is fabulous – from over 6 seconds before hyper-cache to about 2 seconds now.

    I have it set up to invalidate modified posts only.

    My current cache, after about a week running, has nearly 15,000 files. It’s still running very fast, and storage is not a problem, but I was wondering: doesn’t the hourly cleanup mean older files get removed?

    I would prefer not to clear the cache often so even the less frequently read posts are cached. But I suspect that the size of the cache will eventually start slowing it down.

    Is this cache behavior normal? Does it not remove duplicate cached files?

    Many Thanks!
    Jordan

  50. Hi,

    Thanks for making this plug in. It’s fantastic and really improves the speed on one of my sites. Just wondering if there is a way around it cacheing the admin bar at the top of the page when I view the home page while logged in? It means non admin users are seeing my admin bar.

    Thanks,
    Ben.

  51. I’m using hypercache and love it however is there a way to exude certain plugins and widgets from being cached?

    My problem is I’m using wordpress event calendar and my date isn’t updating daily?

    Please let me know I’d really appreciate it.

    Thanks,
    William

    1. Congratulations John!
      My line in advanced-cache.php is set to false and work fine… the mysteries of the Internet.
      I will try to remember your issue to help anybody (or me!) in the future.

      Best regards.

  52. And – it transpires caching WAS deactivated by the webhost but is now turned on (Thanks webhost!) However – it’s still only the home page that caches and I strongly suspect this is something to do with the brief entry from waste in November
    ***Maybe a dumb thing, but if our site uses ?p= queries you need to activate URL with parameters. it wasn’t documented and the default wordpress permalink uses ?p***
    but in what file and how do I activate the URL please?

  53. Yes – I have the WP_cache , true statement.
    Have tried hypercache extended. Still no cached files.
    Am increasingly convinced it’s to do with server settings – but thanks for your many suggestions. It all helps narrow down the problem!
    John

  54. Hi Andrés
    Many thanks for your efforts to help.
    I tried the php.ini solution. They were exactly as you described (utf-8 in WP and iso-8859-1… in php.ini)
    It didn’t work – but at least that’s one more thing to rule out!
    Do you happen to know whether there ought to be a wp-cache-config.php file in wp-content folder. There doesn’t seem to be one generated by hypercache and it doesn’t come with the WP files but such a file does get mentioned on the web in articles about caching.
    Best wishes from the UK
    John

    1. Well my dear, you’re using up all my secrets!, I am not an expert, I’m sorry, ja, ja, ja.

      I understand wp-cache-config.php belongs to “WP Super Cache” plugin. Delete that file.

      Have you added the line of code: define(‘WP_CACHE’, true);
      into the file wp-config.php (just after after the <?php) ?

  55. Thanks Andrés
    Tried that and the path that was automatically generated was already perfectly correct.
    It’s definitely not the cache or hyper-cache folder permissions which are 777 and the wp-config file has define(‘WP_CACHE’, true);
    I’ve briefly tried a different caching plugin (Quick cache) and that seems to have exactly the same problem: nothing arrives in the cache folder. So, it’s probably not your plugin but something ‘deeper.’
    Do you know if there are other wordpress files essential for caching to work? Or might it be to do with the php settings used by the webhost – or is some sort of -htaccess file needed? I’m way out of my depth here!

    1. Hi John:
      I must to say that this plugin is not mine, is made by Stefano Lissa. I only come here to try to help to somebody when is possible and as a way to thank Stefano for his great plugin.

      A few times, there is an issue with the php.ini configuration. If you web-hosting let you access to that file, check the following: First, in WordPress >> Settings >> Reading, look your character encoding setting. The mine is set to UTF-8.
      Then open your php.ini file and check if the default charset is the same. The mine is like this:
      default_mimetype = “text/html”
      default_charset = “utf-8”

      May be your charset is iso-8859-1… you could try to change it to utf-8.

      Just try to set the same character encoding in WordPress like in your php.ini file, that worked for me a long time ago.

      Best regards from Chile.

  56. John:

    Look into advanced-cache.php file (located in wp-content folder).
    In this file, find the first line. You may see something like:

    $hyper_cache[‘path’] = “/home/your_site_name/domains/your_site.com/public_html/wp-content/plugins/hyper-cache-extended/cache/”;

    May be the initial root of your path is wrong, is not absolute. The path must to be absolute and start with /home (and forward…)

    To find the absolute path of your web server you can create a file with this content:

    Then name this file path.php and put it on your public_html folder or anywhere in the web-accessible folder. Now type http://www.my_site.com/path.php and you will get your absolute path.
    (More about this in http://bogdan.org.ua/2007/04/30/how-to-find-absolute-path-on-a-web-server-using-php.html)

    Compare that absolute path with which you have in your advanced-cache.php and complement it if it necessary.

    Best regards.

  57. Sounded just what I need so decided to give it a try.
    Like many of the above – installed, activated on Using WP 3.3.1 and checked folder permissions (777) – but nothing appearing in the hyper-cache folder(except a zero length archive file.) Load times seemingly unchanged.
    Tried deleting and recreating the cache folders – made no difference.

    Could it be something beyond the WP – like needing an .htaccess file or having some specific settings for php that the webhost doesn’t use as the default?

  58. Hello,

    I have installed Hyper Cache in my blog web-site but it doesn’t work well because /wp-content/cache/hyper-cache/ folder is empty. Indeed Files in cache (valid and expired) is 0.

    The CHMOD of the folder is set to 755 permissions.

    ¿Is mandatory to set the folder permission to 777?

    Thank you for your help.

  59. Thanks for this great plugin.

    Using 2.8.5
    Compression: Disk space usage
    This setting is stuck [checked] for me.
    If I uncheck it, the setting doesn’t stick.

    Other settings, like Cache Timeout do save and stick.

    How can I update this setting? Can it be updated manually?

  60. Hello :)

    I have used this plugin for the past few years and love it!

    I recently created a few mobile sites for some of the sites I am using hyper-cache on.

    There is a script that I have to use that goes at the top of the “header.php” file. It redirects the user to the mobile site (http://m.yourdomain.com). Here is the script that goes in the header.php file.

    check() == true) $mobile->redirect(“http://m.yourdomain.com”);
    }
    ?>

    With hyper-cache turned on the user doesn’t get redirected to the mobile site. I have tried many combinations of the setting in hyper-cache and nothing works. The only thing that works is to turn off hyper-cache :(

    How can I make this script process before hyper-cache serves up the cached pages?

    Thanks :)

    Ken Roberts

  61. while everything seems to work, hypercache never creates more than one file in the cache folder.

    why is that happening?

    im using latest version for both hypecache and wordpress

  62. Hello,
    I can’t disable “disk space usage”. Whenever I untick the option and save the settings the box reappears ticked. Does anybody have a clue to disable it?

    Can i turn on the caching for logged user?

    Thx and sorry for my bad english

    1. No the caching for logged in user cannot be enabled, use lite cache for that (but do you know the subtle problem of that kind of caching?)

      About the disk space read the notes on configuration panel.

  63. I’m experiencing something very weird with Hypercache 2.8.5.

    After the upgrade, the “Settings” link on the Plugin page for Hyper cache simply disappeared, and I lost access to the plugin configs.

    Tried installing it in two other WordPress instalations (3.2.1) but same issue. I only see Deactivate or Edit. No settings whatsoever (see picture).

    I had to use an older version of hyper-cache (2.8.0), to find out the path to see the settings and manually load this path on the other blogs with 2.8.5 to be able to configure it: /wp-admin/options-general.php?page=hyper-cache/options.php

    1. Testing today again. Settings link definitely disappeared from plugin list, although hyper-cache is working nicely and caching everything as it should.

      One other doubt. The instructions say: “To manually upgrade remeber the sequence: deactivate, update, activate.”

      So, if I upgrade through the WordPress plugin interface, which alerts me when there are new versions, do I still have to follow this procedure? (deactivate, update,activate)?

  64. I’ve noticed that my site is no longer refreshing when new content is added ( need to manually refresh each time). Hyper Cache hasn’t been showing any cached files each time I check… could these be related?

  65. When I have debugging on I get the message: Notice: Use of undefined constant SID – assumed ‘SID’ in /var/www/vhosts/6/*****/webspace/httpdocs/wp-content/plugins/hyper-cache/cache.php on line 11

    Can I ignore this?

  66. I upgraded to 2.8.5 and now I only get PHP warnings when I try to access pages (unless I deactivate HyperCache).

    Here is the error (I replaced part of my path with XXX in this message). Please help!

    PHP Warning: fopen(D:\XXX\wwwroot/wp-content/cache/hyper-cache/4ae61022611ad73257e4f5cebdbab93a.dat) [function.fopen]: failed to open stream: Invalid argument in D:\XXX\wwwroot\wp-content\plugins\hyper-cache\cache.php on line 251
    PHP Warning: fwrite(): supplied argument is not a valid stream resource in D:\XXX\wwwroot\wp-content\plugins\hyper-cache\cache.php on line 252
    PHP Warning: fclose(): supplied argument is not a valid stream resource in D:\XXX\wwwroot\wp-content\plugins\hyper-cache\cache.php on line 253

  67. @Naveen the cache folder is now in wp-content/cache
    —————————————
    It’s currently not caching anything for me since the last update. (not logged in and setted 777 )

  68. Hi:

    New version of Hyper Cache (V2.8.5) is not recreating the “cache” folder. Even, I see that it has created a “cache” folder in “wp-content/plugins” directory. It is caching the files and serving them, but not showing up in the plugin options after logged in.

    Could you please check what the problem is.

    Great plugin, thanks a lot for it. I recommend it as a must-have plugin.

    Sincerely,
    Naveen

  69. PragmaticMom>> ADD A FOLDER “CACHE” in the installation dir of hypercache, root > wp-content > plugins – hyper-cache then create “cache” there and give it permission, chmod 777 , for example.

      1. @jay, I just upgraded the plugin to the latest version and it’s not displaying that there are any cached pages for me either. You’re not the only one. I’m not sure if the latest version of the plugin is broken. May have to switch to another caching plugin.

        1. The path to the cached pages is: /wordpress/wp-content/cache/hyper-cache/

          The file “_archives.dat” is in that subdirectory right now, but it’s the only file and it’s size is 0.

          I’m now going to go to the plugin’s settings page and hit the save button.

          That did it. The cache subdirectory is filling up with the posts I’m visiting, and the source code of those posts is showing hyper cache at the very bottom.

  70. I updated HyperCache and got this red message: Hyper Cache was not able to create the folder “cache” in its installation dir. Create it by hand and make it writable.

    How do I do this? I called my hosting company, Go Daddy! and they were not helpful.

    I did add a folder in the root directory called “cache” but it doesn’t seem to work. Do have I have to add this into the Hypercache folder? I can’t find the installation directory for hypercache. I am not very technical. thank you!

  71. You say to create a folder for caching, and to make it writable. Shoud that be 777, or 757? I created a folder called “cache” in the Hyper Cache folder, but I am not seeing any files in it. I set it to 777 and the red warning banner went away. Let me know if you think I have done things correctly.

    I notice another folder called Cache in the wp-content folder. Is that related to Hyper Cache?

  72. Ah, the text expands when clicked. I suggest making the text blue and underlined or adding instructions to “Click to expand.”

    On my other question, say I want a post to last a week in the cache, I assume I would enter 10080 in “Cached pages timeout.” At the end of that post’s life of 10080, would it be automatically deleted from the cache and a replacement generated the next time it’s requested? If so, then I can certainly work with that.

    Please accept my apologies for any confusion caused by my comments.

  73. This is all I see since updating to Version 2.8.1:

    Cache status
    Configuration
    Configuration for mobile devices
    Compression
    Advanced options
    Filters

    I don’t see “Files in cache (valid and expired)” anymore or any of the other subtext.

    I switched to my own style sheet and was able to see everything. All the settings remain the same from the previous version.

    WordPress is Version 3.2.1.

    I’m using Opera 11.50. I haven’t looked at it using a different browser yet.

    It’s a solid plugin. The only thing I’ve found that I must do is schedule a manual cache cleaning on my computer calendar to prompt me to go do it so it won’t become too large.

    I’d like a maximum number of files and for the oldest ones to roll off (delete automatically). Then it would be pretty much maintenance free. However, maybe there is a setting there that I just haven’t understood correctly.

  74. Hi, I love the load speed. Question: Does this plugin in any way effect spider crawls, such as possibly blocking them? Also, is there any harm in flushing the cache after making revisions to a post? Thanks

  75. Along with that, I would also want it to not store cached pages for when a logged in users is browsing (since they have the wp admin bar visible at top, and also some custom code I added displaying their user name and such).

  76. Where can I find the changelog for 2.7.7 and 2.7.8 and 2.7.9 and 2.80?

    I’m still using 2.7.6 because I would like to know what is changed before I download the latest version.

    Thanks!

  77. When using Hyper cache, the “Pragma” comes up for my page as “no-cache” in the browser.

    Without the caching plugin, there’s no such tag. In fact the “Expires”, “Max-Age” etc are perfect.

    What’s the point of this plugin if it makes my blog carry “no-cache” tags?

    Or am I missing something?

    Thanks

  78. HI,

    I am not technical, so do not understand your instructions. Where is wp-config.php and if it on my host who installed wordpress for me, then why is define(‘WP_CACHE’, true); already there? Please can you write instructions for TOTAL beginners. Like, login to wordpress account, go to options, go here, go there. Or, login to your host (mine is bluehost) and go here, go there. I have spent 4 hours trying to find this file and feel blind. Also, it says that define(‘WP_CACHE’, true); was added by W3 total cache, a plug in I never activated and actually deleted. I am SO CONFUSED!
    <?php
    /** Enable W3 Total Cache **/
    define('WP_CACHE', true); // Added by W3 Total Cache

    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information
    * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don't have to use the web site, you can just copy this file
    * to "wp-config.php" and fill in the values.
    *
    * @package WordPress
    */<?php
    /** Enable W3 Total Cache **/
    define('WP_CACHE', true); // Added by W3 Total Cache

    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information
    * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don't have to use the web site, you can just copy this file
    * to "wp-config.php" and fill in the values.
    *
    * @package WordPress
    */

  79. How can I exclude parts of the page (such as JS, ads etx) that I don’t want cached?

    Polls, ads and some ajax functions stopped updating when I installed this plugin.

  80. Hi!

    First of all – this has been a great caching system so far and has been very useful to us for over a year.

    Lately, however, I’ve been noticing (through google webmaster tools) that the cached urls for /tag are adding a lot of weird and wrong information.

    For example, instead of /tag/jim-gibbons, it will show:

    /tag/jim-gibbons/page/CUSTOMER%20SERVICE/Percent%20Time:100%Type%20of%20PositionRegular:%20A%20position%20which%20is%20considered%20essential%20for%20the%20effective%20long-term%20operation%20of%20the%20university.%20Persons…

    This wrong information exists in the cached .dat files.

  81. Hi,

    One of our sites using hypercache keeps showing up with a cached google search applied to it, with someones search terms highlighted and the ‘You arrived here after searching for the following phrases:’ box at the top. I cant see it mentioned that anyone else has had this problem. Any ideas would be very much appreciated.

    Cheers

  82. Question 1:
    Where can I find the changelog for 2.7.7 and 2.7.8 and 2.7.9?

    Question 2:
    I’m using the “Strip query string” option but I noticed this will also cache the standard WordPress shortlinks like:

    sampleblog.com/?p=1
    sampleblog.com/?p=2

    as one page. Is it possible to disable the “Strip query string” option for some parameters?

  83. is there a way to ‘preload’ all your wp pages into hyper cache?

    I would like to delete the cache and then have it re-cache all my pages so I don’t have to waste server resources waiting for users to view the page first instead of a cached page.

    thanks!

  84. Love Hyper Cache but have run into an issue when also using WPtouch Pro. I can’t get it two switch between Desktop and Mobile version. According to their tech-heads.

    ‘Looks like somewhere along the way with an update to Hyper Cache something changed and the switch link in WPtouch Pro doesn’t function as it should even when telling it to ignore mobile user agents because a few versions back Hyper cache 2.3.3 seems to work fine. You may want to check with them to see what changed and if they can release an update to remedy the issue, because it’s not in WPtouch Pro.’

    Keep up the great work!

  85. Hello,

    I am still confused with cache page timeout settings. I get 4500 pages in cache when using default 1440 as timeout. My server has 4 GB space.

    Is it ok to keep 4500 files on cache or should I decrease the timeout?

    Please help me anyone.

  86. Okay, I finally found the support forum. 😉 Sorry for trying to get a response elsewhere.

    I can’t get the compression to work. If I turn it on the site becomes “unavailable”. I contacted my provider to ask what services they run on their Apache and the said that they run ‘gzip’ and ‘deflate’.

    It seems to work for others. Why not for me? Any ideas?

    Thanks!
    Andreas

  87. Hello

    How do I know this is working? I have installed it edited the wp-config.php etc

    I have put 9 posts in but Files in cache (valid and expired) is only reading 2.

    I have refreshed page and it is still showing 2 yet there are 9 posts.

    Thanks all

  88. Hi..

    I love the hyper cache plugin but almost everytime i reload the page a new timestamp i generated.

    I have checked Disable cache for commenters, and only modified posts. but even if there is no comments or a modified post there is a new cache timestamp ?

    Please help

    Kasper

  89. Hi,

    By deafult, Hype Cache is set to run ‘hourly’ and initiate wp-cron for ‘cleaning process’. It’s causing a lot of bandwidth (GPUs) on media temple grid server.

    Can you please advise, how to reduce the wp-cron hits by Hype cache?

    This will help all Media Temple Grid Service accounts.

    Thanks,

    DG…

  90. Hi,
    Is there any way to change the cache folder path.
    We have the wordpress installation on NFS file system.
    WOuld like to have the cache directory locally on the server.
    Please advise.

    thanks for your help in advance,

  91. Hi.

    I have a strange situation here testing the plugin.

    advanced-cache.php is created.
    /plugins/hyper-cache/cache folder is created and already has cache files inside.

    There’s no warning in settings page, but…

    After loading the page in a clean browser I can’t see the signature in the html file.

    get_num_queries shows me that wordpress is still accessing the DB.

    Another odd thing. In advanced-cache.php is written $hyper_cache_timeout = 86400; when I have 1440 as timeout in my settings.

    Any idea?

  92. sorry for the double post, I’d posted this comment on your main page before noticing this “support” page.

    I downloaded and installed hyper cache (2.7.6) about a week or so ago and it seems to run great. Then just tonight, I had this message pop up.

    “Your wp-content folder is not writable. Hyper Cache needs to create a file called advanced-cache.php in to that folder in order to work. Make it writable and deactivate and reactivate Hyper Cache.”

    Any ideas what the cause may be? Is this a legitimate problem?

    Thanks much,

    Craig

  93. hey Stefano,

    there’s a major issue when someone defines a custom wp-content dir with the ‘WP_CONTENT_DIR’ constant in wp-config.php.

    You should never hard-code that folder and use the ‘WP_CONTENT_DIR’ constant instead.

    Basically, instead of:
    ABSPATH . ‘wp-content/etc’

    use:
    ‘WP_CONTENT_DIR’ . ‘/etc’

    I’ll try to manually fix this myself in the source and see if the plugin works with a custom wp install. But it will be good if you can also fix that in future releases of the plugin.

    PS: Same issue about the plugin dir, just use ‘WP_PLUGIN_DIR’.

    ciao

  94. Hey ho,

    since one of the last plugin updates the following date appears in the plugin settings:
    Cleaning process
    Next run on: 1. January 1970 02:00

    It seems that the cleaning process has stranded in the 70ies and doesn´t work anymore.

    This happens unfortunately on different web servers and different WordPress Version 2.9 – 3.0.1

  95. Hello,
    I really appreciate this plugin. It’s really helping my website’s performace.

    But there is one small bug that breaks my RSS feed everytime I update this plugin.

    At the bottom of the cache.php file, after the closing php script tag ( ?> ), there are 2 carriage returns. These carriage returns cause extra HTML characters to render before WordPress is ready for them. This will cause RSS feed to stop working.

    I have gone in an made these changes just to make my website work. Fore the sake of others who are downloading this plugin, can these carrage returns be removed from the original source code?

    Thank you and Kudos!

  96. I just upgraded to 2.7.5 and it doesn’t work so I put back the previous version which works fine. After upgrading it gave an error that it couldn’t create a cache folder and to change permissions to 777. After doing this the error stopped but there was no caching.

    1. Hi Adam: For all that people who say that in spite of giving all the permissions of writing to WP folders, Hyper Cache follows without working, I discovered that this happens because the encode of
      character set in the server is different from which we have in WordPress.
      In order to solve that, it is necessary to use the same codification of character set that we
      have in WordPress (in reading options, utf-8 for example) and to modify the following line in
      our config.ini: default_charset= ” utf-8″
      (that file it must be in our folder public_html. If is not there, it is good for asking to webhost supplier for
      this file ).

      If you have not access to this file, try to change the your WordPress character set (in reading options) from utf-8 to ISO 8859-1 to see what happens. It works for me.

      Best regards.

  97. Hello

    Excellent plugin thank you :)

    I have tried to install your plugin with WPMU 2.9.2 but will only work if it place it in /plugins rather than /mu-plugins.

    I can get the plugin to load with MU if I then copy plugin.php to the root of /mu-plugins but then it complains it cant create the cache folder though it has permissions.

    Is it possible to get this working with WPMU as when I install it to /plugins I then have to configure the settings on each of my blogs and I have about 45!

    Thanks

    Doug

  98. Hi,
    And thanks again (I posted my french translation on comments on the main page) for your plugin, witch makes my blog faster..!

    I have just a question : is there a problem between Hyper Cache and the plugin Bad Behavior (anti-spam) ?
    They seem to work together withaout errors, but I receive since txo days, when I install Hyper Cache, more spams than before, I think… Do you think it’s possible ?

    Thank you and regards !

  99. Hello, i installed this plugin and now it wont let my authors login it says “You do not have sufficient permissions to access this page” How can i solve this as everyting was fine before i installed the plugin. This plugin is very handy and i would like to solve the issue rather than disable it.

    Thanks

  100. I love this plugin for the fact it allows you to set what invalidation mode you want.

    But i have a problem. Periodically, I get a string of php errors and my server load goes way up…eventually i have to restart http/mysql.

    Here’s an example of the errors:

    [Mon Sep 06 10:52:29 2010] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Call to undefined function apply_filters() in /home/xxxx/public_html/wp-content/plugins/hyper-cache/cache.php on line 229

    [Mon Sep 06 10:52:28 2010] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Call to undefined function apply_filters() in /home/xxxx/public_html/wp-content/plugins/hyper-cache/cache.php on line 229

  101. Thank you for developing this amazing plugin. It is very simple to install and really speeds up my website. Load time went from 9 seconds on a 2mbit connection to 2 seconds!

    However, one major disappointment is that the ads on my site stopped working correctly. I work with the ad plugin called Adrotate

    http://wordpress.org/extend/plugins/adrotate/

    Pages are cached so the ads do not counts, at the end of the day only 200 views are displayed instead of 6.000 views.

    It is not only adrotate, this plugin also does not work with OpenX and other major ad platforms.

    Is there anyway around this? Or a way to fix this?

  102. Hi, I like your plugin very much because of its light weight comparing to other cache plugins.

    It works very well until today… After installing Absolute Privacy plugin (http://wordpress.org/extend/plugins/absolute-privacy/), it stops producing cache pages for those who logged in as Subscribers.

    So I can image, from now on, new posts will never be cached because everyone must log in to read these posts.

    I understand that Hyper Cache will pass through if I am logged in as Administrator. But for Subscribers, wouldn’t it be nice to serve cache pages to them as well?

    Or maybe I messed up some configurations? Please help.

    Thanks a lot!
    Shaun

  103. Hi,
    just as you said…

    *This page has just been moved from satollo.com and need a bit of reorganization. Be patience.

    ..correct would be:
    and “needs” a bit of reorganization.
    Be patient please.

    now for the tecnical aspect.
    Would it make sens to ask for a “chronometer counter” somewhere on a page to measure the loading speed of page with and without Cache activated ?
    Thanks for your expertize.

  104. Ciao Stefano,
    I’m using your plugin on the blog. It seems perfect.
    Unfotunately sometimes happens something strange and I don’t know if it related to your plugin or whatelse.

    When I click on a post and then I click on onother one the page url changes but the content remains the same.

    If I refresh the new page more than one time I can see the right content.

    Do you think it’s a problem related to your plugin? Did you never heard something like this?

    Thank you in advance,

    Riccardo

    P.S.
    Se avessi scritto in italiano avrei fatto prima! :-)

  105. I have a problem when using HyperCache and external pages that I integrated with WP 3.0. Firefox says the website is using an unsupported type of compression/encoding, and will never load the page. Other browsers can not load it either.

    The problem only happens when ALL 3 of the following are true:

    1. I’m logged into the blog.
    2. Compression option is ON in HyperCache options.
    3. It only affects my pages outside of wordpress, using wordpress integration.

    The affected pages are regular PHP pages, but integrated with WP using following code:


    init();
    $wp->parse_request();
    $wp->query_posts();
    $wp->register_globals();
    ?>

    I don’t use require(‘./wp-blog-header.php’) because of the 404 problem described here, http://www.adrogen.com/blog/wordpress-wp-blog-headerphp-causes-404-in-ie/ .

    I think I know why it has the problem — probably because my custom pages are outputting HTML before WP is loaded. Very likely, I have an output buffer problem.

    But the question is: why does it affect when I am logged in? I thought that when logging in, HyperCache is not supposed to do anything. In my case, it is the opposite: if I am logged out, then all pages work and are cached perfectly. When logged in, it is broken.

    Thanks in advance.

  106. Hello. I like Hyper Cache very much, and thanks for your work!
    But it seems that when I want to use the plugin in new wordpress 3.0, the program crashes at once! :-(
    Can your please check and fix the bug?

  107. Hello,

    I installed Hyper Cache, and it s look a bit faster. Thanks
    But when i check the folders in the server, I don t have any /wp-content/hyper-cache.
    And there are no gzip compression files.
    But the code source of the pages still show the

    Also it seems that all the cached pages are stored in /wp-content/plugins/hyper-cache/cache/

    What s wrong Doctor?

  108. Hi Stefano,
    I really love your plugin and I use it on all my website.
    On the biggest one (that I have on a different server) it seems that is not working:
    pages are cached ok but the cache doesn’t rebuilt itself on a new post (or comment).
    I also get
    Total requests handled 1
    all the time.
    any idea?
    Thank you

  109. Hi this plugin is working with scheduled post?

    or how I could clean the index page of the cache when the scheduled post is published?

    Regards, Francisco

    …hyper cache is amazing with the performance but I got that problem…

  110. Hi,

    I followed your steps and installed Hyper-Cache on cooo.net.
    The control panel shows that is has cache 525 files, but when I log out/clean cookies I don’t see static page; it is still dynamic pages served bt PHP.

    Could you advise what could be the problem?
    Thank you.

  111. hi,nice plugin.
    but it still get something wrong when i use both did you past math and wp-postviews. how to register a filter(according to Technical notes) to stop hyper cache in these two plugins(did you past math, wp-postviews).thanks.

  112. Ciao Stefano,

    Hyper Cache is great! but I wonder if it’s possible to cache GET queries (?somevars) and at the same time skip the cache with a specific query (ex: ?nocache)

    As I can see from the Hyper Cache page, now you can skip cache only by URI patterns.

    Thanks!

  113. My cache is setup on “Only Modified Posts”, and I checked “Invalidate Home, Archives, Categories on single post invalidation”, but that didn’t do the trick for me: I added a link to my blogroll, and I wanted the front page to be refreshed right away, so I had to edit a post. I did, but the blogroll widget on the front page didn’t get refreshed. Had to wipe the cache. Not sure why this is. Maybe a “Refresh front page” button would be great for this?

  114. 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

  115. 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!

  116. 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.

  117. 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.

  118. 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.

  119. 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…

  120. 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?

  121. 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?

  122. 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

  123. 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.

      1. 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.

  124. 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?

    1. 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.

  125. 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

  126. 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?

  127. 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

    1. 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.

  128. 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

        1. 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.

  129. 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

  130. 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?

    1. 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.

    2. 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… :-)

  131. 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?

  132. 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.

  133. 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

  134. 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!

  135. 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

      1. 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

        1. 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

  136. 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

    1. 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?

  137. 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

    1. 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?

      1. 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.

  138. 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?

    1. 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.

  139. 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

  140. 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

  141. 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.

  142. 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!

      1. 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.

  143. 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.

  144. 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

    1. 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!)

  145. 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

  146. 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!

  147. 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?

  148. 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.

  149. 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.

  150. 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

  151. 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.

  152. 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?

  153. 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.

  154. 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!

  155. I’m switching over to hyper cache + db cache reloaded instead of wp-supercache but ran into a problem. for non logged in users the pages often deliver the following random assortment of characters down the page.

    ��}iw�8��g��

    when i deactivate the plugin functionality returns. two things im thinking: 1) may code is far from validated – so i’ll fix that 2) currently the staging site (which is using hypercache) is a protected folder – not sure if that would have anything to do with it.

    i saw that some people had the same problem above. any ideas?

  156. Well, I ran suddenly into the 777 permissions problem, too – but I found a way around it:

    Starting with Hyper Cache 2.6.0 it NEEDS to have an existing directory (folder) named “cahce” (without quotes) set to 777 permissions, in the following location:

    wp-content/plugins/hyper-cache/cache

    People who upgraded successively over past versions very likely have that OLD cache folder named “hyper-cache” residing at:

    wp-content/hyper-cache

    Starting 2.6.0 Hyper Cache doesn’t accept that location anymore; if you have a hosting provider who doesn’t (by default) allow plugins themselves to create folders, you’ll need to create one named “cache” at the first location (within the Hyper Cache plugin folder).

    I’m not sure what the wisdom is of having a world-writable cache folder (i.e. set to 777) within the plugin’s folder, especially given possible complications at future plugin upgrades (which cause the plugin folder to get wiped out, and with it the cache folder) but there you go: 2.6.0 requires it, or it’ll bug you with the error message reported above.

  157. Dear Stefano, thank you so much for your help )
    The new version solved my problem, i’m sooo happy now ^_^

    But, with a little trick. First i deactivated hyper, upgraded, set wp-content to 777, activated and got a message “Hyper Cache was not able to create the folder “cache” in its installation dir” warning.

    So, i deactivated it again, set hyper-cache folder to 777, activated and the problem was solved ) Then set folders back to 755, now cache folder has 755 and everything works like it should )

  158. Dear Stefano, you should explicitly note in help to Hyper Cache 2.5x, that a 777 chmod permission IS necessary for “cache” subfolder in hyper cache main folder (wp-content/plugins/hyper-cache/cache).

    Otherwise, cache do NOT works and cache files are NOT created in a “cache” subfolder. In older versions 755 permission was enough, but, alas, not with new cache folder position.

    1. I checked the wp-content/plugins/hyper-cache/cache for my website (bmedreport.com) and it is set to 755…. and my works fine as best I can tell. There are multiple cached files in the folder with current dates and “view source” in my browser shows a cached file being served up so I am pretty sure it works find with 755.

    2. I host this blog on hostgator and the cache folder is 755. Hyper Cache is working. 755 means nothing if we do not know in respect of what user and group. If you upload a plugin with an FTP user which is different from the user running PHP, I agree you have to set 777 cause the folder and file are owned by a different user that php running user. When the plugin is installed with autoupdate 755 is right (and safe).

      Previous versions, you are right, created hyper-cache folder by them self, so the permission was 755 (i suppose) but owned by php user.

      1. Stefano, thanks for your answer ) The matter is, that i used autoupdate on all my sites (6 of them), as usual, and then found this problem. Previously i updated hyper cache (like 2.5.5) the same way, with no problems at all. But only this update i suddenly found, that 777 is needed.
        Anyway, thank you, i’ll have a talk with my hosting support, maybe they can help, ’cause i don’t want to leave 777 on a cache folder, it’s unsecure, but it’s the only way it works now…

        1. It’s really strange, may be the auto update does something “strange”? I modify the plugin to not include the cache folder and to create it on activation, maybe this solves the problem!

          1. Dear Stefano, I’ve just checked my another hosting, and everything there works like a charm, with 755 on a cache folder.

            But the other one hosting don’t :( The only one difference that i found between them – on the non-working hosting file advanced-cache.php has 99 as an owner (the same story for all 6 sites on that hosting – 99 as owner).

            But on the working hosting all files, including advanced-cache.php, has the same right owner permission.

            Should i smack my hosting support for that ? Maybe it’s all that particular hosting problems and i’m just wasting your time :(

          2. Hi Dimka, I really don’t know why some things happen, but it’s all about users and permission. PHP is a system process that runs with a system user. So everything php is doind, it is doing as that user. Eg, when it create a folder the folder is owned by the user on which PHP is running. So, when you install hyper cache directly from wordpress, which is a PHP process, the folders and files should be of that PHP users. Then, when Hyper Cahce need to write in such folder, being a PHP process, it should be able to do that.
            When you upload the plugin even if only one time, with an FTP user that is different from the PHP user, problems rises. All my providers given my an FTP account with the same user on which PHP is running.

            Try: deactivate hyper cache, delete the hyper cache folder in plugins folder. Install hyper cache from wordpress admin panel. That will create all folders from a PHP process and they should have the right permission.

  159. hi, i have installed the hyper cache 2.5.9 with WP 2.8.4, and active the plugin. it only creat file “advanced-cache.php” but not creat folder “hyper-cache”. There is no any error message in my log. Could you please tell how to fix it? thx.

  160. You mention that this plugin works with IIS sites with a small change to the configuration. What is this small change?

    Plugin is activated and installed on my blog, but I’m unsure to if it’s working or not. How do I know if it’s performing like it should.

    Note, my IIS does not have mod_rewrite like most of these other cache plugins need. Does Hyper Cache also use mod_rewrite?

  161. I’ve installed the DB Cache Reloaded with Hypercache. No apparent problems off hand. Everything seems to function just fine. Feel free to browse my website to see if you find any errors or just a poor experience with speed. It is here: http://www.bmedreport.com Please post here (or email me) with any problems.

    Also, check the page source in your browser after you visit one of my webpages and it gives the stats (very bottom of the page source code) for the DB Cache Reloaded, as well as confirmation that HyperCache is running.

  162. I feel brave today and plan to combine the DB Cache Reloaded plugin with HyperCache. We webhost recommends this combo, but DB Cache hadn’t been updated forever so I didn’t do it… I just discovered the that DB Cache Reloaded came out. I’ll report back with my experiences.

  163. I found a bug ,u use substr in plugin.php
    $link = get_permalink($post_id);
    $link = substr($link, 7);
    $file = md5($link);

    and in advancd-cache.php no substr
    $hyper_uri = $_SERVER[‘HTTP_HOST’] . $hyper_uri;

    hyper_cache_log(‘URI: ‘ . $hyper_uri);

    // The name of the file with html and other data
    $hyper_cache_name = md5($hyper_uri);
    $hyper_file = ABSPATH . ‘wp-content/hyper-cache/’ . hyper_mobile_type() . $hyper_cache_name . ‘.dat’;

    Hope you can fix it later
    thank you ~~~~

        1. I’m not sure if a never implement that. Thare are a number of problems. Just an example: if you theme display something related to the current logged in user that is seeing the blog, tha page will be cache with his data… and any other will see it.

          1. wp super cache just creat differnet cache for every login user,these login user cache will be in valid in 60m. I think you can you do it in hyper-cache

            Regards,
            Charleis

        2. I do not see the usefulness of have a cache per user. Before all, a per user cache can be required when I have a lot of logged in users or the ration of not logged in over logged in is low.

          With cache per user, I have to cache a single post many time, one version per user. So when the user access the post the first time, the page is generated and cache. BUT, does a user load that page many times? I don’t think so… hence, why to store it to disk?

          When a blog has many logged in users and the the same page is rendered in a different way per user, it’s better to install caches like db cache or widget cache that cache the “common parts of a page” but not the overall page.

          Or not?

          1. it’s not good,but better than nothing.~~~ dbcache is useless for my blog , i use a lot of plugin~~~~~~~~~`

  164. It seems the Home invalidation is not working for me. It doesn’t get removed after the autoclean time.

    Also, when I enable “DO NOT cache the home page so it is always fresh.” for the Home caching, nothing gets cached anymore at all.

    Thanks for this plug-in though, it seems nice and fast.

  165. hi nice plugin
    I think it’s better to have different time cache setting for post and home page category .

    post cache changed when Post changed
    home page category 60minutes

    Thank you

    1. Yes, it can be implemented. But are you sure that a post change when the post is modified? And if the page that show up a post has a list of the latest articles? Or the latest comments?

      1. you mean ‘latest articles section’ wont update in the cache file
        I think you can let user to take the choice.:)

        If I have larget amout of posts (100,000),I would choose”post cache changed when Post changed”,it’s not good to regenerate all the cache.

        If I my blog do not have much traffic, I want more function ,flexibility, I would choose “cache time 60 minutes”

        1. Charlies, you have a number of options to configure hyper cache. You can choose no never invalidate, invalidate single posts, invalidate single posts plus home page or invalidate all.

          I’m pretty sure those kind of option can cover the great part of needs. :-)

  166. I am just trying Hyper Cache. It works excellent on pages without comments or changing (dynamic) content. But it doesn´ t on pages with lots of comments. The page doesn´ t update after a new comment was written and i haven´ t found a strategie to overcome this. Hyper Cache should be modified to only cache pages with – for example – comments disabled or much better, the developer could create a button in the “write a post” “write a page” admin section to allow caching for this post or not.

    1. What kind of invalidation method have you chosen? When a comment is submitted and it is added in approved state, the post is refreshed. Pay attention: you you have comment pagination. It gives a lot of problem and not only to hyper cache but for search engines. I’m working on it to solve the problem for hyper cache.
      Remember to set the flag that disable the cache for users that are commenter, to give them the default experience when posting comments.

  167. There is a problem with Hyper Cache 2.5.1, when I’m writing a draft and save:

    “Warning: touch() [function.touch]: Unable to create file /home/xxx/public_html/blog/blog/wp-content/hyper-cache-invalidation-archive.dat because Permission denied in /home/xxx/public_html/blog/blog/wp-content/plugins/hyper-cache/plugin.php on line 149

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxx/public_html/blog/blog/wp-content/plugins/hyper-cache/plugin.php:149) in /home/xxx/public_html/blog/blog/wp-includes/pluggable.php on line 865”

    [Cache invalidation mode: Only modified posts; and checked “Invalidate home, archives…” ]

  168. Hello,

    I have just upgraded to version 2.4.3 and i notice that under the setting panel, the entry “Disk space usage” is always “On”, if i disable it and than click on update, it go on again.

    Thanks for your help

    Giorgio

  169. I just installed the latest version of Hyper Cache, however for some reason the chache status and the statistics seem not to be updating. There also no files inside the hyper-cache folder…
    What do I need to do to make this work and how can I make sure if Hyper Cache is working properly. Thanks!

  170. Thank you.

    One more question. Hyper Cache ist caching all pages. One drawback ist, that the comment form will be empty, even if the User has commented before.

    Can you integrate a option, that these form datas will be shown in the form. 90% of my visitors dont comment and for them, it is Okay as it is right now.

    But the 10% who makes comments wants a pre-filled comment form.

  171. Hi Stefano,
    first I would like to say, that hyper cache is a great plugin.

    But I had problems with the latest release 2.4.1. It was caching as normal, but when I published a new post oder edited a old post the cache was not updated. I had to manually clear the cache.

    I tried several options in the configuration, but the result was the same.

    So I downgraded to version 2.3.2 and now it works as it should be.

    Peer

  172. Stefano, congratulations on your plugins. I recently updated to the 2.4.1 version and the interface changed a little bit from the 2.3.X versions. I’m quite lost to setup this new version. There´s no Activate cache option anymore? In other words, simply by enabling the plugin it means the Hyper Cache is enabled?

    When I go to the Hyper Cache options page the cached page count is always with the number 604, no matter what I do. Nothing happens if I try to push the Clean the cache button. I can´t clean the cache and I think the plugin is not enabled. I guess my installation is not fully working or maybe there´s a bug in the plugin. What are you opinions on this?

    Thanks.

    1. Ok, when the plugin is activated the first time you need to go to the options panel, set them and save. Empty fields will be filled. I know, I have to work to improve this “first setup”… after a first setup all is more simple.

      The option panel shows in read if there are problems: if so, the options will not be saved. If you clean the cache, the page count has to go to zero, not 604. Have you ask apache crazy cache installed???

  173. It appears that your recent update solved a Hypercache and WP-Widget Cache compatibility issue… Each time hypercache was activated, WP-Widget Cache did not run… But today when I checked the code on my webpage, I received confirmation that they both load now…. I do not know what you did, but thanks!

    1. It’s correct, read the comment below the first compression check box. Do you have the enable compression checked? Yes, it’s not clear, I have to rewrite the labels.

  174. Stefano, after last update (2.4.0) I can’t set a zero value for cash timeout and autoclean. I enter it and click Update, but after moving to another settings page and coming back to Hyper Cache page – again old value :( Tried on all my blogs, the same problem.

    And I really miss button to clean cache manually – it’s very usefull, why did you removed it ? :((

    1. Further details:

      Seems to be on redirected pages and more likely (though not exclusively) on mobile browsers.

      Example: http://www.148apps.com/price-drops should redirect to and display at http://www.148apps.com/price-drops/ . Occasionally though a blank page, will get cached and served.

      In some instances I can see 2 different cache files created. One for the page without the / and one for the one with.

      Hypercache settings: cache redirects off, gz compression off, cache mobile on

      Cheers,
      Jeff

  175. Thanks for this wonderfull plugin, just move from 1blog to hypercache and noticed a improve in performance. I’m experiencing load issues in the server.

    It’s possible to use HyperCache combined with Db-Cache or one nullify the other with no effect?
    thx

    1. I think you can let both active. I really don’t know the way db cache works: if it optimize the single page generation it’s good to be used with hyper cache, if it caches query results for long time, probably it does not help too much.

      1. Hello!
        Thanks for the answer.
        This db have a option to set the expire, the default is 5 minutes.
        I ask because it prints a comment in html output
        like
        (huge memory huh :()

        And If a reload, it gives a different value, so I don’t know if it nullify the HyperCache at all …?

      1. It works, but db-cache is not full compatible, you cant add tags to new posts or edit comments, so when you make these tasks, you need to deactivate it first.

  176. I selected “single pages” for the delete on event setting. Are there any advantages to setting a expiration time for the other two settings: “Expire a cached page after” and “Autoclean every”? It the cache clears completely when I post something new, why would I otherwise want to clear out the cache with those two setting above? Are there advantages I have not thought of to autocleaning and expiration of the cache?

    1. Blog pages do not change only because you write a new post. The can change ’cause comments are added and may be you have a “latest comments” widget. This is why there is an exipration time. If you don’t want the cache to expire, simply se it to zero. There is another problem: if a cached page doesn’t expire and is not cleaned up by autoclean, quickly your cache folder will fill up of files, where many of them are rearely used. Folders with too much files are slower to seek.

      1. Thanks. I do not have alot of comments on my site; but your point about large size folder is a good one. I think I’ll set an auto-cache but only every couple of days…

        BTW, I use to have multiple warnings throughout each and every day about my site timing out.. since I installed your plugin I have had only 2 or 3 in the last 2 weeks! I plan to donate as soon as start to make money from my site. Thanks!!

  177. Hi,

    Above all, I thank the author of this excellent plugin.

    Ecxcuses me for my poor english but i’m french.

    I use the option to have the wp-content directory in outside the wp core directory. I just use the constant WP_CONTENT_DIR like explain in the Codex.

    My ABSPATH is pointing to a subdirectory containing the core files (/wp-core)
    My WP_CONTENT_DIR is pointing to a subditectory containg my own files(/wp-content)
    The problem was that, folder & files generated in wp-content are define relativily to ABSPATH and not

    To make you plugin works, i replace this in all files of the plugin:
    ABSPATH . ‘wp-content ====> WP_CONTENT_DIR . ‘

    It works like a charm.

    So, if i may suggest, can you, please, use in your next releases, the WordPress constants like WP_CONTENT_DIR… I I think it’s better for compatibity with some new directory features.

    Thanks and i hope you’ll take this in consideration.

    Regards.

    Gee

  178. Hi -how can I tell if HyperCache is working? When I use YSlow I get the same load speed and score with or without HyperCache enabled. I can see .dat files accumulating in my hyper-cache folder but it *feels* the same as before.

    Also, does HyperCache rely on rewriting .htaccess in any way? I have that turned off for security purposes but didn’t see any errors in the HyperCache install suggesting it needed to modify .htaccess.

    Thanks for your help!

    1. Considering they will save a lot of cpu and database inviting people to install my plugin… I have to ask them to pay me!!! :-) Uhm… can be an idea to ask them to sponsor me :-)

  179. Glitch – The internal server error has absolutely nothing to do with Hypercache… welcome to the wonderful world of “Dream”host, which should be renamed “FarginNightmarehost” … internal server errors and slow websites are part of the Dreamhost user experience. I literally get multiple daily alerts from my web monitoring service that my site is down. When I talk to dreamhost, I always get one of 2 answers (1) we are working on it and/or (2) we just banned an abusive user so the server is fast again… I wonder when I am next? In fact, these problems led me to search for a faster cache plugin…

    I finally worked up the confidence to install a big time cache program (hyper cache) and deal the associated plug in problems, etc…. to my surprise, I can’t seem to find any problems whatsoever on my site…everything seems to work after the hypercache install….I’ll report back if I find anything.

  180. Hi,

    Really like the plug in.

    Have just upgraded and now get these messages at the top of the page…

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

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

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

    Go on…. tell me… what stupid thing have I done wrong to go and mess up a good thing! :-)

    Robbert

  181. Hi,
    HyperCache seems to be a great tool. However, I have some problems with the automatic update of the cache. Method “all” is working fine, but the functions “strictly single page” and “single page” fail. If someone is adding a new comment, the cache is not refreshed for the corresponding page.
    Do you know a solution or workaround?

  182. Hi. I’ve tried wp super cache to all my blogs, my adsense decreased that’s why I installed hyper cache to one of my blogs to observe if same thing will happen. Luckily, my adsense is back to normal.

    However, I’m not that familiar with cache plugins. Since I transferred to dreamhost, I need details on hyper cache settings. Could you please post your settings so I can copy it. I’m planning to use hyper cache to all of my blogs but I saw “internal server error” to my blog with hyper cache.

    Thank you, hoping for your reply.

      1. I never tried to login to my admin panel during internal server error. after a few minutes, my site is back. I experienced this sometimes but not most of the times. Could you please share your settings.

  183. Last two plugin builds, with wp 2.8.1 and 2.8.2, the options page for hyper cache in the admin panel is completely blank. Apache log shows PHP parse error on line 406 of hyper-cache\options.php.

  184. After the last plugin update, hyper cache settings page in the admin console is blank. Have deleted the plugin and reinstalled, but all I get is blank settings page.

  185. Hi.. i ve a problem when use the plugin because my images dont appear when activate.. but when i desactivate the image are there…
    i clean the cache but still wrong…
    any solution??

  186. Hello
    I cant’ see any files in /public_html/wp-content/hyper-cache folder
    but every page of site ends with “hyper cache: d6688a66bb017bccb2f8651c4695b39a”
    what’s wrong?
    tnks

  187. After using Hyper cache, my Google adsense click value reduced. But number of click increased.

    Without cache plugin, I get good value for adsense click. Number of click reduced. Visitors and traffic source are same.

    Please help me….

    1. Really I don’t belive is a cache problem, your adsense lowered income. Do you add only hyper cache or you have modified your blog in other ways (theme change, number of ads block changed and so on…)

        1. Sarpras, i’m pretty sure that cache systems cannot change the adsense income. But to better understand, I need to know what happens. The click value decreases? The numer of click decreases? The number of visits changes?

          1. If cache program active, i get below avg $0.10 cents click and CTR increased.

            If deactive, i get above avg 0.15 to 0.20 cents click and CTR reduced.

            Visitors same…

          2. Thats a weird sylogim for that guy! Anyway, its a great EPC! I wish mine could be that. Since some months, getting only 0,02 per click! Tks

  188. Hiya Stefano!!

    As always, every single one of your new version for Hyper Cache only makes it even easier to implement it.

    Kudos for the excellent work and thanks a lot for implementing the mobile caching!!

    I already requested you once but I just haveeeeeeeeeee to request you to please integrate the option to make it work with Facebook Connect! It truly will be one of the best thing that can ever happen to the wordpress plugin community because nearly everyone is using cache based plugin and 99% of us are not being able to integrate Facebook when using a cache plugin.

    Only Supercache distincts itself by a hack through which one will able to work it out with Facebook Connect. Its just a cookie validation method I think (I am no php or sql guy so really cant confirm it.) through which it works smoothly!!

    If its not too much to ask can you please please please take a look because I am sure that once you do you will know how its done on your plugin. I implemented the Facebook Plugin API already but just because of conflict I am able to make it work :(

    The api for FBConnect: http://wiki.developers.facebook.com/index.php/WP-FBConnect

    The tutorial can be found here on how to implement Facebook Connect with SuperCache specifically: http://www.allfacebook.com/2008/12/how-to-make-facebook-connect-work-with-wp-super-cache/

    Can you please help us out :(

    1. You are the second one who have this problem, but I really don’t know how to solve it. If wp-super-cache has the same problem, it’s not a fault of caches, it’s some kind of problem with your PHP I suppose. As you see Hyper Cache is working but for some reason it cannot save the content of the page. Look into wp-content/hyper-cache folder and you’ll find many file of little size. Those file are generated by hyper cache but they have no html inside them. Have you tried to disable compression in hyper cache?

    2. I ran into this same problem. It was due to two different methods of gzip compression. I accidentally turn on page gzip compression in php speedy while using hypercache… a big no no!

Leave a Reply