Hello, I’m getting these message when running my staging site on php8.2. If you do a revision, could you please address them?
[10-Sep-2024 13:09:50 UTC] PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/REDACTED/wp-content/plugins/hyper-cache/plugin.php on line 402
[10-Sep-2024 13:09:50 UTC] PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/REDACTED/wp-content/plugins/hyper-cache/plugin.php on line 423
]]>
Hi,
We have been working with the?Easy Form Builder plugin?and encountered some challenges with page caching. To address these issues, we use the following function to handle page caching with our plugins:
public function cache_cleaner_Efb($page_id,$plugins){
$page_id = intval($page_id);
$cache_plugins = json_decode($plugins);
foreach($cache_plugins as $plugin){
switch($plugin->slug){
case 'litespeed-cache':
if (defined('LSCWP_V') || defined('LSCWP_BASENAME' )) do_action( 'litespeed_purge_post', $page_id );
break;
case 'wp-rocket':
if (function_exists('rocket_clean_post')) $r = rocket_clean_post($page_id);
break;
.
.
.
}
}
}
However, we’re seeking a more integrated solution. Specifically, we’re looking for a structure or method similar to what other plugins use to manage caching effectively.
Thank you in advance for your help and insights!
Best regards
]]>Hi all,
wp site health insists to write “Page cache is not detected …” but actually Hypercache is installed and correctly working. Moreover: I have also cloudflare CDN server side cache … (of course the setup considers it).
For me this “site health” is just full of flaws and for me totally useless
]]>I’ve been debugging a warning that has been showing up a lot for a site:
Cannot modify header information – headers already sent in /home/…/public_html/wp-content/advanced-cache.php
I have tracked it down to hypercache trying to add a header to a wp-cron.php call. My workaround is to add the following towards the top of advanced-cache.php:
if(isset($_SERVER[“SCRIPT_NAME”]) && $_SERVER[“SCRIPT_NAME”] == “/wp-cron.php”) {
$cache_stop = true;
return false;
}
Do you think this a good idea? If so, can it be added to the next version of hypercache?
]]>Hello, this plugin has been around for years and to this day there is no button to clear the cache of all pages or individual posts in the wordpress bar, why?
]]>Greetings,
After Updating to Hypercache 3.4.1, site is down with “There has been a critical error on this website. Learn more about troubleshooting WordPress.“
Running: WP 6.3.2, Blocksy Theme 1.9.8 with Blocksy Companion 1.9.8
Steps: Updated Hypercache to 3.4.1, goto Settings-Hypercache, “clean whole cache”.
Also happens if goto Settings-Permalinks, save permalinks (with no changes), then Settings-Hypercache (don’t have chance to click on anything before error page appears).
Both admin interface and website go down, showing just the error quoted.
I restored from backup and all is fine again for me using Hypercache 3.4.0.
FYI: I also went to an old backup and updated Hypercache with WP 6.3.1 and Blocksy 1.9.7 installed and received same error.
]]>Line 12 of the file advanced-cache.php refers to:
$_SERVER[‘HTTP_USER_AGENT’].
As of PHP 8, if HTTP_USER_AGENT is not set, this will produce a warning. While it is reasonable to expect this to be set, it isn’t always, particularly by some RSS readers. To avoid the warning, this should be changed to:
$_SERVER[‘HTTP_USER_AGENT’] ?? “”
]]>My sites don’t use Google Analytics because, well, Google. So for years I’ve been using WP Statistics. But that’s not compatible with Hyper Cache or any other cache despite what its authors say* so I’ve switched to Koko Analytics. But it’s a bit basic to say the least. Do you have a list of Analytics plug-ins that work with Hyper Cache?
*WP Statistics doesn’t work with a cache because its main JSON query string parameters get created in PHP so the query string of the first user to view a page gets cached ??
]]>Let’s say I have multiple webpages in multisite, like https://alkotip.sk/, https://dodomacnosti.sk/ etc. I need to clear the cache on one of webpages (lets say alkotip.sk). Only that one, not all pages. But there is only one option to clear the cache, to press “Clear the whole cache” button, and that button clears cache on all webpages in multisite. Is there any solution for this?
]]>I’m not sure if this is possible but it would be helpful if the entire site cache was cleared when a plugin automatically updates. Is this possible?
]]>The caching seems to be working well. I notice that in only caches for NOT logged-in users. Logged in users it does not cache. I am using BuddyPress.
Is there a setting that can be changed? Or an API function.php hook fix?
]]>Hello! Thank you for your wonderful plugin.
I’m having problems with WooCommerce shopping cart since I updated Hyper Cache from version 3.3.9 to the latest version 3.4.0.
Before the update everything worked correctly. Now, when the user buys a product the shopping cart is not updated. I have confirmed that is a cache problem. When I deactivate it Hyper Cache or uninstall it (I did both to test), the cart works fine. I checked in the directory wp-content/cache/hyper-cache/mydomain and it’s creating folders and files for the bypassed URIs.
I have the same URIs I want to bypass placed in “Do not cache pages with URIs” and “Do not cache pages with URIs starting with”. I’m using the latest WordPress version (5.8.2).
Thank you very much.
Since i use hyper Cache i became on every order wich payed with woocommerce amazon pay mail with “Order failed”
All these orders are correctly shown as positive orders and doesnt failed;
The server log gives a warning:
100 “POST /wc-api/WC_Gateway_Amazon_Payments_Advanced/ HTTP/1.1”
Is it possible to add functionality to clear the cache for an individual page? I frequently have cases—often when a plugin is updated—where I need to refresh the cache for a single page. But the only option I see is to clear the entire cache, which is an annoyance.
]]>This is a great plugin, thank you.
Would be awesome to have an ‘Empty Cache’ button that is always visible in the WP Dashboard.
Thanks again for providing this excellent tool.
]]>Hi,
since its origins, Hyper Cache has a mobile-device server-side device detection to create a separate cache when the site is serving different HTML to desktop and mobile devices.
It should be an obsolete feature now since WP themes are responsive and all use CSS media queries to adapt the content presentation to different devices.
So I’m going to remove that feature.
Any thoughts?
Thank you, Stefano.
]]>Hi,
Wordfence is marking Hyper Cache as “abandonware“ because it has not been updated for a while.
The plug-in page has a warning that it has not been tested with recent WP versions (although it still seems to be working for me!).
Should I be looking for a different plugin?
Dave
]]>When not in the site default language, sometimes “GETTEXT…” strings are displayed instead of the proper text.
Cheers.
RE: https://www.ads-software.com/plugins/translatepress-multilingual/
]]>Thanks for making Hyper Cache, when I try to use it with Woocommerce, it can generate cache for /product/…. pages, but the stock count isn’t updated accordingly after new orders are placed (and stock is reduced).
However, the cart widget display seems to be right all the time.
All tested under guest account.
Any idea?
Cheers.
]]>Hi!
I get this PHP warning in my debug.log all the time:
PHP Warning: Cannot modify header information - headers already sent in /var/www/coaching_test/wp-content/advanced-cache.php on line 218
This is the code that causes it:
217 function hyper_cache_header($value) {
218 header('X-Hyper-Cache: ' . $value, false);
219 }
My PHP version: PHP 7.2.24-0ubuntu0.18.04.7
]]>Good day sir. Please I’m having amp errors triggered by the signature at the end of compressed pages. How do I exclude amp pages or stop that signature from showing in the footer of the source of my pages.
I’m using the official wordpress plugin https://www.ads-software.com/plugins/amp/
Thanks
]]>Hi!
I found an issue:
When your plugin is active, it brakes 301 redirect from
https://img-it.ru/seo to https://img-it.ru/seo/
so it generates duplicate of pages, which isn’t good.
Please solve this problem.
]]>good afternoon
1. when I put the settings
“HTTPS-standart cache”
https://last-modified.com/en/
shows
The site correctly renders the 304 Not Modified code, but the page continues to load.
2. when I put the settings
“HTTPS-bypass the cache”
https://last-modified.com/en/
shows
The site correctly renders the code 304 Not Modified.
Is this a bug in the plugin?
If everything is ok, what HTTPS setting do we need to use? (website on https. cache should be the same for the main and mobile versions of the site.)
How to enable caching for pages with UTM tags?
For example: site.com/?utm=123
]]>Hi,
Would it be possible to add BiddyPress support to your plugin? Or alternatively, is there some kind of hook I can use to determine how pages are updated (like WP SuperCache’s prune_super_cache function)?
Regards,
Lee
Seeing this a fair bit in my php error logs:
PHP Warning: Cannot modify header information - headers already sent in /srv/users/wordpress/apps/wordpress/public/wp-content/advanced-cache.php on line 218
This warning is coming in every couple seconds.
]]>Hi there,
Just a quick question – if our host makes use of Nginx server side caching does it still make sense to use Hypercache?
Kind regards
Francois Wessels
Hello and thank you for creating this great plugin.
I am getting reports of Android users receiving blank pages. The following is from a user:
returned to look at your page and some articles and none of them are opening. They open but the page is all blank. I went to some tweets that you responded to and opened the articles there and they are still blank. Just FYI
Can you please tell me how to correct this troubling issue.
Count
]]>Hi there,
Thanks for your plugin!
My sites are returning x-hyper-cache: "continue - no file"
headers… I can’t find any documentation about why/or what this means.
The site seems to still cache OK, but just wondering what no file
means.
There is content in the cache path on the disk, so files seem to exist.
I’m using nginx.
]]>This appears to be stopping cloudflare from caching, although hyper cache /cache/ folder does have content. ( I got around it by forcing a cache-everything page rule in cloudflare)
When I load my pages from chrome incognito this header is added.
x-hyper-cache: stop - no cache header
The code seems to indicate if I’m a bot then show me no cache but I can’t figure out why.
hyper-cache/advanced-cache.php line 48
if (!$hyper_cache_is_bot || $hyper_cache_is_bot && !HC_BOTS_IGNORE_NOCACHE) {
if (isset($_SERVER['HTTP_CACHE_CONTROL']) && $_SERVER['HTTP_CACHE_CONTROL'] == 'no-cache') {
hyper_cache_header('stop - no cache header');
$cache_stop = true;
return false;
}
]]>