Chatgpt tell me it’s useful. Does it still work with WooCommerce?
]]>Some pages of the site or product (you can never predict which one) do not display content on the site header after pre-caching. There are no buttons, menus and other things. Have to constantly clean the cache. What to do? Maybe make a site header in the caching exception? But I don’t know how to do it. What text to prescribe.
]]>I am getting these errors (php 8)
[04-May-2021 09:03:40 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($function) must be a valid callback, function "wp_ffpc_redirect_callback" not found or invalid function name in /home/mysite/public_html/wp-includes/class-wp-hook.php:292
Stack trace:
#0 /home/mysite/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters('https://poiimat...', Array)
#1 /home/mysite/public_html/wp-includes/canonical.php(789): apply_filters('redirect_canoni...', 'https://poiimat...', 'https://poiimat...')
#2 /home/mysite/public_html/wp-includes/class-wp-hook.php(292): redirect_canonical('https://poiimat...')
#3 /home/mysite/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#4 /home/mysite/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#5 /home/mysite/public_html/wp-includes/template-loader.php(13): do_action('template_redire...')
#6 /home/mysite/public_html/wp-blog-header.php(19): require_once('/home/mysite/...')
#7 /home/mysite/public_html/index.php(17): require('/home/mysite/...')
#8 {main}
thrown in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 292
]]>
WP-FFPC 1.11.2 does not work with PHP 8.0.
How to fix as follow:
wp-ffpc-class.php
1016-1018 lines
[Before fixed]
public function plugin_options_migrate( &$options ) {
if ( version_compare ( $options['version'], $this->plugin_version, '<' ) ) {
[After fixed]
public function plugin_options_migrate( &$options ) {
if($options === false) $options = array('version' => '0.0');
if ( version_compare ( $options['version'], $this->plugin_version, '<' ) ) {
This is caused by the
wp-ffpc-abstract.php
From line 514
public static function _get_option ( $optionID, $network = false ) {
In _get_options( $optionID, $network = false ), the return value $options has several patterns such as false (bool value), array, etc. When installing for the first time, the WP-FFPC setting does not exist in the database used by WordPress, so the value of $options becomes false (bool value).
Then the following $options[‘version’] (public function plugin_options_migrate in wp-ffpc-class.php)
) will not exist ($options = false), and the first argument of version_compare will be false. However, since version_compare expects a string as an argument, a type mismatch will occur, and as of PHP 8.0, it is an error to do so.
Please fix the issue.
]]>After update wp 5.6 I have new line on all of my pages:
<br />
<b>Warning</b>: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_ffpc_redirect_callback' not found or invalid function name in <b>/***/www/wp-includes/class-wp-hook.php</b> on line <b>287</b><br />
]]>
Hello,
I’ve been having an issue with setting up this plugin on my site. I have installed memcache / memcached extensions in WHM and now its showing both are installed but showing their status down. Any reason for that? rebooted my vps/whm twice but having same error.
Driver: memcached
Backend status:
127.0.0.1:11211 => down
Site is mixedinterest.com. Please help me to get this fixed.
]]>hi!
If turn on the “WP OPTIMIZE” plugin with “WP-FFPC” enabled, the redirect of pages with a slash to without does not work. WordPress displaying warning:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wp_ffpc_redirect_callback’ not found or invalid function name in /home/k/user/website/public_html/wp-includes/class-wp-hook.php on line 288
When you turn off one of them, everything works correctly. I can’t understand yet why they conflict and how to solve it.
Please, need support.
]]>Hi,
when I’m precaching I’m getting strange errors for categorys. The log quotes the following:
https://www.torstens-buecherecke.de/category/thema/goblins/
This path is working and then:
PHP Warning: file_get_contents(https://www.torstens-buecherecke.de/thema/goblins/): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Without category it is not working
I don’t know why category is lost in this case.
Regards
Torsten
]]>Hi,
In our windows server, We hosted multiple websites, and configured memcached.
When we configured the WP-FFPC plugin with first website, everything works well, But when we added the same plugin in second wordpress website also, in the memcache, only the second website data is available. So please help me and let me know how we can use this plugin in multiple websites, without loosing cached data.
Need ability to add extra pages or urls.
]]>Hello,
My site have a strange issue and after I enabled the logs, its shows:
[03-Jan-2018 23:15:48 UTC] WP_FFPC_ABSTRACT: WP_FFPC
[03-Jan-2018 23:15:48 UTC] WP_FFPC_ABSTRACT: WP_FFPC
[03-Jan-2018 23:15:48 UTC] WP_FFPC_ABSTRACT: – getting option wp-ffpc
[03-Jan-2018 23:15:48 UTC] WP_FFPC_Backend: init starting
[03-Jan-2018 23:15:48 UTC] WP_FFPC_Backend: 127.0.0.1:11211 added
[03-Jan-2018 23:15:48 UTC] WP_FFPC_Backend: checking server statuses
[03-Jan-2018 23:15:48 UTC] WP_FFPC_Backend: 127.0.0.1:11211 server is up & running
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: init starting
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: 127.0.0.1:11211 added
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: checking server statuses
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: 127.0.0.1:11211 server is up & running
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: checking server statuses
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: 127.0.0.1:11211 server is up & running
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: original key configuration: $scheme://$host$request_uri
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: setting key for: https://www.meusite.com/post
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: setting key to: meta-https://www.meusite.com/post
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: GET meta-https://www.meusite.com/post
[03-Jan-2018 23:15:49 UTC] WP_FFPC_Backend: failed to get entry: meta-https://www.meusite.com/post
But it caches correctly if the page is a /amp page. I tested older versions of the plugin without success.
I do not know when it started to fail to cache.
Any idea for how to fix this issue ?
BTW, I have another site, with the same VPS, fully updated and it works correctly.
]]>Because of this piece of shit my site received a bunch of unnecessary queries (precache) and even when. I deleted this plugin the queries did not disappear
]]>Hi there! I’m giving your plugin a test spin and so far I’m super impressed!!! Would like to know how I can prevent certain URLs from being cached, for example the URL:
https://www.prorydeliftkits.com/email-sign-up/
How do I make this a regular expression? Or am I mistaken that this could work like this?
Thanks in advance for any assistance!
Nick
]]>Hi Peter,
I was just testing PHP 7.0 and 7.1 and that process broke up your plugin somehow.
error code:
memcached cache backend activated but no PHP memcached extension was found.
Please either use different backend or activate the module!
debug.log
[24-Jun-2017 07:45:01 UTC] PHP Notice: Undefined index: REQUEST_METHOD in /var/www/webroot/ROOT/wp-content/plugins/wp-ffpc/wp-ffpc-acache.php on line 21
[24-Jun-2017 07:45:01 UTC] PHP Notice: Undefined index: HTTP_HOST in /var/www/webroot/ROOT/wp-content/plugins/wp-ffpc/wp-ffpc-acache.php on line 62
[24-Jun-2017 07:45:01 UTC] PHP Notice: Undefined index: REMOTE_ADDR in /var/www/webroot/ROOT/wp-content/plugins/woocommerce-products-filter/index.php on line 30
[24-Jun-2017 07:45:13 UTC] WP_FFPC:false
[24-Jun-2017 07:46:34 UTC] WP_FFPC:false
[24-Jun-2017 07:46:35 UTC] WP_FFPC:false
[24-Jun-2017 07:48:13 UTC] WP_FFPC:false
Maybe you can reproduce that error. I used the following php cores:
2.4.6-php-7.0.13
and
2.4.6-php-7.1.0
Thanks for helping me.
Simon
]]>Ahoi Peter,
I use this plugin at several sites and it is awesome.
its the only REAL working caching plugin.
Its absolute clean and slim without useless features no one needs in the end.
At the latest severmove of openandromaps.org load times for page only was 1,2sec.
Installing an older Version of the plugin droped it to 200-400ms.
See you at GitHub
Thanks for all your efforts
Christian from Austria
Is there a recommended method for removing WP-FFPC?
Thank you!
Hi!
I run PHP Memcached using wp-ffpc and under “Cache exceptions” I have set exclude home and feeds. I have also set cache expire very low.
But when my visitors go to my start page they get an old version that’s sevral days old. Since we are a news site this is not very good.
Any idea how what I can check or try to make sure visitors always get a updates start page?
Best regards,
]]>Hi, Thanks for this great plugin. I have some questions.
1. I am using this plugin with NGINX. Without Nginx header shows ETAG, but with Nginx it doesnot show ETAG but show page expire time. Is pages are caching with NGINX or not?
2.My post contains dynamic a url of other host and i don’t want to cache that url. May i know is this plugin not caching that url but the whole post?
Thanks.
]]>Hi Team,
I am currently using WP-FFPC version 1.8.3 alongwith WordPress v4.4.2 for a portal which hosts a large amount of content 200 pages or so and having similar Page names and approx similar slugs.
The issue I am facing is, whenever I enable this plugin I start getting 404 errors on most of the pages. Please help.
Thanks,
Achin
I am a happy user of this cache plugin, however I noticed that it doesn’t cache all http request headers. I have a plugin that adds some header entries starting with “Link: “.
I noticed that when I take a page which is not in the cache, the link headers are there, but when the page comes from cache, the headers are missing.
Example, a page which is not in the cache:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 09 Jan 2017 11:41:36 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Link: here goes the data I spit
exactly the same page but from cache:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 09 Jan 2017 11:41:58 GMT
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Cache-Control: public,max-age=600,s-maxage=600,must-revalidate
Expires: Mon, 09 Jan 2017 11:51:36 GMT
ETag: bac607c0c0636230c90ad792ca77b8fd
Last-Modified: Tue, 03 Jan 2017 22:24:51 GMT
As you see my headers are gone.
Does the browser caches the page with the headers? I don’t think so.
How can I have the link header displayed in the cache result as well?
Thank you for your fantastic support!
]]>I get the following error when activating teh plugin: memcached cache backend activated but no PHP memcached extension was found
I have memcache and memcached installed. I am running cpanel v60 with PHPFPM and I do have extension=memcached.so in teh php.ini file
memcache
memcache support => enabled
memcache.allow_failover => 1 => 1
memcache.chunk_size => 8192 => 8192
memcache.default_port => 11211 => 11211
memcache.default_timeout_ms => 1000 => 1000
memcache.hash_function => crc32 => crc32
memcache.hash_strategy => standard => standard
memcache.max_failover_attempts => 20 => 20
Registered save handlers => files user memcache
This is a great plugin, but a thing that is missing… is a simple “Clear Cache” button on the top bar, like most other plugins. Non technical clients find it hard to navigate until they find the correct place to flush the cache.
Please add this feature.
]]>Hi,
Does this plugin support mobile theme ? Like the mobile theme switcher on w3tc ?
Regards,
Todi
Hello,
will be there an update (maybe just update the readme.txt) to WordPress 4.6?
I found no issue at the moment, so it could be enough to change the “tested up to” in the readme.txt
Best regards,
Harry
I’m trying to verify that caching is working on my site.
I enable the “Add HTML debug comment” setting in the debug section of FFPC to view the HTML comment in the cached version of the pages.
I see the HTML comment okay, which is good. Specifically, I see the first section of the HTML comment “cache generation stats”, within which, the “generation time” timestamp and date never change when I reload the page, which is good, because those timestamps are telling when the cached version was created. Correct?
<!– WP-FFPC cache generation stats
generation time: 0.146 seconds
generaton UNIX timestamp: 1470600507
generaton date: 2016-08-07T20:08:27+00:00
generator server: XXX.XXX.XXX.XXX –>
But in the second section, however, these timestamps do change each time I reload the page:
<!– WP-FFPC cache output stats
cache engine: apcu
UNIX timestamp: 1470600900
date: 2016-08-07T20:15:00+00:00
from server: XXX.XXX.XXX.XXX –>
Is this also correct?
]]>Anyone using APCu with this plugin who may know how to actually view / manage / clear what is in the APCu cache? Is there a web interface out there for viewing what is in APCu?
The only thing I can find is this:
https://www.rpmfind.net/linux/rpm2html/search.php?query=php-apcu-admin
Thanks!
]]>PHP error
WP_FFPC:{“127.0.0.1:11211”:1}
Log normal access cache.
Not logged in return 500 error.
My nginx configuration
location ~ [^/]\.php(/|$) {
#fastcgi_pass remote_php_ip:9000;
#fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
set $memcached_raw_key $scheme://$host$request_uri;
set $memcached_key data-$memcached_raw_key;
set $memcached_request 1;
if ($request_method = POST ) {
set $memcached_request 0;
}
if ( $uri ~ "/wp-" ) {
set $memcached_request 0;
}
if ( $args ) {
set $memcached_request 0;
}
if ($http_cookie ~* "comment_author_|wordpressuser_|wp-postpass_|wordpress_logged_in_" ) {
set $memcached_request 0;
}
if ( $memcached_request = 1) {
memcached_pass 127.0.0.1:11211;
error_page 404 = @nocache;
break;
}
fastcgi_pass unix:/dev/shm/php-cgi.sock;
}
]]>
Hi! I created a pull request for the mentioned feature which would be very useful to have in WP-FFPC, please see:
https://github.com/petermolnar/wp-ffpc/pull/51
Hello,
will be there an update (maybe just update the readme.txt) to WordPress 4.5.x?
I found no issue at the moment, so it could be enough to change the “tested up to” in the readme.txt
Best regards,
Harry
Hi,
I have installed PHP 7 and APCu. And I have Nginx as reverse proxy in front of Apache. Does WP-FFPC support database and object caching with that setup?
]]>