Hyper Cache Help

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

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

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

334 Responses to “Hyper Cache Help”

  1. Hi,
    I think my statpress plugin stats are not working good with hyper cache, the numbers are not getting updated.

    Can I use Statpress plugin with hyper cache?

  2. 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
    */

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

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

  5. Hi, I’m thinking of installing this plugin. Is there a setting to block serving up cached pages for logged in users?

    Thanks!

  6. 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).

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

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

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

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

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

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

    • mAEX, thanks for the info. I did that, but 24 hours later, there are no cache pages in the folder. Any thoughts on what is up, and how to fix?

      • @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.

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

  13. Actually, it’s the “Update” button, not “save.”

  14. Ciao Stefano,
    dopo l’aggiornamento dell’ultima versione di hyper cache volevo dirti che gli header adesso non sono corretti solo nei post singoli.

    Ciao,
    Yuri.

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

  16. @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 )

    • to answer myself:
      like Tom Usher says above, after upgrading, click update does seem to do the trick and activates caching, I checked it in the folder too.

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

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

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

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

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

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

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

    • maybe a dumb thing, but if our site uses ?p= queries you need to activate URL with parameters

      it wasent documented and the default wordpress permalink uses ?p

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

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

  25. I cant find the config.php file in my editor:(

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

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

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

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

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

    • Caches need to put the file advanced-cache.php file inside the wp-content. There is such file?

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

    • 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) ?

    • Hey John, you could try with Hyper Cache Extended plugin, do not lose hope!

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

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

  33. OK – It’s now working. Went to advanced-cache.php and changed false to true in this line.
    $hyper_cache_cache_qs = false;

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

    • There is an option on hyper cache admin panel o enable url with query parameters caching, is it not working?

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

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

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

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

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

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

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

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

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

  42. I just need one feature in HyperCache. Like LiteCache please add theme changer feature in HyperCache.

    Thanks for the rocking Hypercache plugin.

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

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

Trackbacks/Pingbacks

Leave a Reply