and, It seems that various hooks are prepared, but where is the description page for them?
thank you @emrevona
It seems that you can check it by the method you taught me!
We check the contents of the buffer and if it contains bad text, we don’t want to generate that page cache (stop generating the cache file).
I want to prepare such a check function apart from the “Exclude Pages” setting.
1.return NULL by “buffer-callback-filter”
line 1069 and 1111 on wp-fastest-cache/inc/cache.php
2.If the buffer was NULL, stop process “file_put_contents” and “WpFastestCacheStatics”
Is it possible with the above modifications?
However, in this case, we have to directly modify the plugin.
-
This reply was modified 3 years, 10 months ago by
realmccoyzz.
now I got you. I will add it and let you know.
thank you @emrevona
And, I have an additional request.
I want to know the page “path” of the buffer in wpfc_buffer_callback_filter.
I added your feature request but I did not release a new version. you can try the new feature by downloading the following version.
https://downloads.wp.xz.cn/plugin/wp-fastest-cache.zip
and I updated the tutorial. You can take a look at the tutorial.
https://www.wpfastestcache.com/tutorial/buffer-callback-filter/
thank you @emrevona
Yours is a perfect support!
>but I did not release a new version.
Will it be released as a new official version someday?
The reason I didn’t modify the plugin directly is to avoid regressions by plugin’s updates.
https://ww.wp.xz.cn/plugins/wp-fastest-cache/#developers
I will release the new version after 2 weeks.