hello,
i am using a ninja forms content form on my website. When i refresh the page in firefox the form is not shown any more. In chrome this does not happen. Has anybody experienced sth similar? it seems to be caused by the cache minification setting (inline-css and javascript)…
Thanks in Advance!
]]>Hello! how can I exclude all subpages of a certain main page from the cache? Thanks for the help
]]>As the developer of the?Easy Form Builder plugin, I’m seeking advice on potential conflicts with Cache Enabler.
Here’s the function I’m using for internal caching:
public function get_efbFunction($state) { if (isset($this->efbFunction)) return $this->efbFunction; $efbFunctionInstance; if (false === ($efbFunctionInstance = wp_cache_get('efbFunctionInstance', 'emsfb'))) { if (!class_exists('Emsfb\efbFunction')) { require_once(EMSFB_PLUGIN_DIRECTORY . 'includes/functions.php'); } $efbFunctionInstance = new \Emsfb\efbFunction(); wp_cache_set('efbFunctionInstance', $efbFunctionInstance, 'emsfb', 3600); // 1 hour cache } $this->efbFunction = $efbFunctionInstance; if ($state == 1) return $this->efbFunction;}
I’m concerned that using?wp_cache_get
?and?wp_cache_set
?for internal caching might cause conflicts with Cache Enabler . Has anyone encountered similar issues or know of best practices to ensure compatibility?
Any guidance or insights would be greatly appreciated.
Thank you for your help!
]]>I am comparing some caching plugins to use on my website that uses Easy Digital Downloads plugin.
Does anyone have experience with the compatibility of Cache Enabler with EDD?
Or do I have to make specific settings?
(on the EDD website it describes settings for other caching plugins, but not Cache Enabler)
Hello! I’m working on a large direct-to-consumer (D2C) eCommerce site.
Under some circumstances we’re having trouble clearing the cache sitewide.
An error of type E_ERROR was caused in line 354 of the file /home/nginx/domains/WEBSITE/public/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php. Error message: Maximum execution time of 60 seconds exceeded
That references this code:
foreach ( $objects as $object ) {
// full path
$object = $dir . DIRECTORY_SEPARATOR . $object;
// check if directory
if ( is_dir( $object ) ) {
self::_clear_dir( $object );
} else {
@unlink( $object );
}
}
—
The most obvious solution is to increase PHP execution time. We’ll probably give that a try in the next few weeks.
In the meantime is there anything we can do to try to remediate this?
Is there any possibility of a queueing system for websites that have tons of cached files?
This plugin has worked for us for quite some time. And we haven’t updated any plugins in the last several weeks so I’m wondering what might be the cause. We ran into the issue today while trying to clear the cache under a moderate load.
A few of our specs:
6.5.5
1.4.9
)8.1.29
Hi,
Since WP 6.6, the ‘Delete cache’ button has moved to the far right, where the user menu is. Please fix it.
Thanks in advance!
Georg
]]>Hi,
I had Cache Enabler Plugin running but caused some problems. So I deactived it and deleted it.
But I realized, that there is still some code snippet in my site.
Why is that so and how can I remove it?
This is what I see:
<!-- Cache Enabler by KeyCDN @ Sun, 14 Jul 2024 09:47:55 GMT (https-index.html) -->
I expect that this will be removed when deactivating the plugin and deleting it”!!!!!
Regards
Marco
]]>I am tinkering with a FSE/block theme for the first time. It seems like Cache Enabler doesn’t detect changes made to the theme templates/pages to automatically flush the cache. I initially believed it to be a Cloudflare issue, but the stale page continued to be served after flushing Cloudflare’s cache and even disabling it altogether. Opened Cache Enabler’s cached copy from wp-content/cache/cache-enabler/example.com/https-index.html, and it was indeed a stale copy.
Please look into this and update the plugin to work with FSE themes.
]]>I read in the forum that Cache Enabler is configured by default to exclude the cart and checkout page of woocommerce. In my woocommerce there are products where the user has to choose between different options. Should I exclude the cache for these product pages as well? Are there any other settings I need to set to make Cache Enabler work properly with woocommerce?
]]>Good Afternoon Everyone:
After clearing the cache and with “Create a cached version pre-compressed with Gzip” selected in CE settings, upon initial page load, shouldn’t two versions of each page be created in the cache, one plain html the other gzipped? This would seem logical to me, but that doesn’t appear to be how it works. Does anyone know if this functionality will be added?
Also are there any plans to add a cache warming function to Cache Enabler? To have a button that would Clear and Reload Cache would pretty much make this the perfect caching plugin.
Thanks!
Scott
Please fix the depreciation notice:
[23-Jun-2024 15:30:06 UTC] PHP Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in …../plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 1199
]]>Hello,
I am interested to know if your plugin works with nginx reverse proxy with PHP-FPM?
Does it work out of the box, or do we need to make any special modifications in the nginx configuration.
Thank you
Swag
]]>Hi Folks:
I’ve been using Cache Enabler for years and have been quite happy with it. I’m running Windows Server 2016, and I use a cache warming script, which uses CURL to warm the caches of all my clients’ sites that use CE. This had been working great up until I tried using CE version 1.8.15. As of 1.8.15, the script seems to run just fine, BUT nothing goes into the cache. When I dropped back to 1.8.13, it works again. Some of the sites are on PHP 8.3 and some are still on 7.4, but all had the same result, so I’m guessing it’s not the PHP version.
Does anyone have any idea why this is happening?
Thanks in advance for any suggestions.
Scott
]]>How would I clear the cache using a link/url without logging-in to WP? This can sometimes be the easiest method for site owners.
Thank you!
]]>Hello,
WordPress 6.5 has been out for a while along with three minor point updates. Could you please check and update the “Tested up to” value for Cache Enabler, or are there any known issues for this version?
Thank you!
]]>Hello,
Is it possible that WebP (although activated in the plugin) doesn’t work? WebP images (Optimus HQ) are there but are not being delivered. Elementor claims that this is not an issue with Elementor.
Best, W
How do you prevent the category, tag and blog page from clearing cache when you update a blog post?
]]>Hi,
I try to set up a custom cache bypass logic based on the example code I found in the documentation.
add_filter( 'cache_enabler_bypass_cache', 'filter_cache_enabler_bypass_cache' );
function filter_cache_enabler_bypass_cache( $bypass_cache ) {
$post_type = get_post_type();
if ( $post_type === 'news' ) {
$bypass_cache = true;
}
return $bypass_cache;
}
I added the above code to functions.php in my WP child theme, but I found that for some reason it never runs.
After a lot of investigation I think the problem is, that the
apply_filters( 'cache_enabler_bypass_cache', bool $bypass_cache = Cache_Enabler_Engine::is_excluded() );
code in the plugin runs before my filter function gets added by add_filter().
Can you please help in how/where should I register my function with add_filter() to make this work properly?
Thanks in advance!
]]>I’m getting lots of deprecated PHP messages in my debug log. I’m using PHP 8.2
PHP Deprecated: Use of “self” in callables is deprecated in /path/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler_engine.class.php
Will this be addressed soon?
]]>I am using a cache warmer in combination with cache enabler and with the update to 1.8.15 you added the $bad_accept_header check in the function of is_excluded in the class Cache_Enabler_Engine my warming is not working anymore, because the $_SERVER[HTTP_ACCEPT] sends “*/*” and not any other text with ‘text/html’ which is what you are testing agains. please add a filter or a different option of the $bad_accept_header.
thank you
]]>I use Cache Enabler but still I get this error message in my ‘site diagnosis’: server response time is very slow, “no client caching response headers were detected”. It also says it does detect a page cache plugin. So is it something I need to change in the plugin settings?
]]>When I edit a page and save it, that page is purged from the cache–except for the home page. When I edit and save the home page, I must either clear the entire cache, which for me takes some time to re-warm, or manually delete the home page files from the cache folder.
Is this behavior intentional or a mistake? If it’s a mistake, can someone please correct it in a future release?
If it’s intentional, why is that? Why would you want to continue to present an old version of the home page after changes have been made to it, OR why do you want people to purge the entire cache after updating only the home page?
Thank you!
Scott
]]>Great caching plugin!
When paired with “Cache Warmer” it’s a dream team.
I have a question though.
“How do I clear a specific URL whenever a post is published?”
It is a page I wish to cache, so exclusion is out of the question. However, I would like to clear the cash for this page, without needing to clear the cache for my entire website and collection of pages.
Is this workflow possible with Cache Enabler plug-in?
Is there a code snippet available for accomplishing this?
]]>When enabling the plugin I am getting these errors when visiting a page on frontend:
AH01071: Got error 'PHP message: PHP Warning: Trying to access array offset on value of type null in /httpdocs/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php
l/httpdocs/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php?on line 2196′, referer: site.nl/siteurl
Any one familiar with this?
]]>Hi Hummingbird team,
The plugin Easy Form Builder was experiencing disruptions due to caching plugins, similar to yours, causing an unpleasant experience for WordPress users. It could potentially question the functionality of plugins for the end-user. To address this issue, we have collaborated with popular plugins, including yours, and successfully resolved the problem. Other plugins have tackled the challenge of preventing re-submission issues in the form builder, sharing relevant functions in their cache plugins to exclude a page from caching jQuery and JavaScript files. You can find more details on how this problem was resolved by other caching plugins on this GitHub page.
Please provide a solution for preventing the caching of the page containing the Easy Form Builder by your plugin. I need this information to address the issue as a developer and resolve it in the Easy Form Builder.
Thank you
]]>Hello, Cache Enabler Support Team,
I’m developing a performance improving plugin and have a specific caching requirement.
I need pages and posts not to be cached on first open, after they are created or edited.
I need to examine the page with all the JS and CSS implemented, then edit the HTML before it can be cached. So, the page should be cached on the second visit.
Is there a built-in feature or specific hook in Cache Enabler that supports this functionality, and can be controlled through PHP?
I am considering a custom implementation using WordPress hooks. Here’s a brief overview of my approach:
// Function to update a custom field when a post or page is saved
function update_last_modified_meta($post_id) {
update_post_meta($post_id, '_last_modified_time', current_time('mysql'));
}
add_action('save_post', 'update_last_modified_meta');
// Function to control caching based on the last modified time
function custom_per_page_cache_control() {
if (is_single() || is_page()) {
global $post;
$stored_last_modified = get_post_meta($post->ID, '_last_modified_time', true);
if ($post->post_modified !== $stored_last_modified) {
// Send headers to prevent caching
header("Cache-Control: no-cache, must-revalidate, max-age=0");
header("Pragma: no-cache");
header("Expires: Wed, 11 Jan 1984 05:00:00 GMT");
update_post_meta($post->ID, '_last_modified_time', $post->post_modified);
}
}
}
add_action('template_redirect', 'custom_per_page_cache_control');
Is this approach is compatible with your plugin? Is there a solution specific to your plugin?
Any recommendations or best practices for implementing this would be greatly appreciated.
Thank you,
Jovan
]]>Can you add feature to use brotli not gzip?
]]>Hello, i’m using Your plugin and is functioning excellent for its main purpose of serving the static cache pages per configuration.
Now after some events, it seems that cached pages are preventing browser cookies set&saved by other in-use GDPR Cookie plugin’s storage – problem is active on the mobile/Android devices, while on the other side the same cache pages are fully working with setting the browser cookies within desktop’s browsers. Also tried option with the separate mobile pages cache, but not solved this specific problem.
To add that, mentioned third party GDPR Cookie plugin is fully working(setting and saving cookies) as intended when the Cache Enabler is inactive.
Can you please advise?
]]>Greetings, @keycdn,
Please add to your Cache Enabler settings panel like other plugins provide, as an option:
? Hide “Clear Page Cache” from top administrator bar.
? Hide “Clear Site Cache” from top administrator bar.
The forced text in the administrator bar crosses over live editors and other valued content.
Thanks
]]>Is this plugin abandoned?
]]>