The Ubuntu 20.04 image appears to come without extra modules, so they need to be installed additionally:
$ sudo apt install linux-modules-extra-$(uname -r)Then simply install zram-config
$ sudo apt install zram-configThe Ubuntu 20.04 image appears to come without extra modules, so they need to be installed additionally:
$ sudo apt install linux-modules-extra-$(uname -r)Then simply install zram-config
$ sudo apt install zram-configThe Super Page Cache for Cloudflare plugin has recently added the feature for using the Cache Everything pagerule withing the ?swcfpc=1 cache buster query paramater. This opens up so many new doors where users previously had to use the Cloudflare Workers to remove the cache buster.
With this new option now users are able to take advantage of Cloudflare Cache Everything page rule and take it to the next level by using the new Rulesets released by Cloudflare. Basically this is achived by taking advantage of the all new Cache Rules feature implemented by Cloudflare.
The first thing that you need to do is, log-in to your Cloudflare Dahsbord and go to the domain/zone doe which you are setting up the [Super Page Cache for Cloudflare](https://wordpress.org/plug
| // Define page_id | |
| $page_ID = get_the_ID(); | |
| // Define paginated posts | |
| $page = get_query_var( 'page' ); | |
| // Define custom query parameters | |
| $args = array( | |
| 'post_type' => array( 'post', 'book', 'movie' ), // post types | |
| 'posts_per_page' => 5, |
| if (!window['hdden_JSON_to_URLEncoded']) { | |
| window['hdden_JSON_to_URLEncoded'] = hdden_JSON_to_URLEncoded; | |
| } | |
| function hdden_JSON_to_URLEncoded(element, key, list) { | |
| var list = list || []; | |
| if (typeof (element) == 'object') { | |
| for (var idx in element) | |
| hdden_JSON_to_URLEncoded(element[idx], key ? key + '[' + idx + ']' : idx, list); | |
| } else { | |
| list.push(key + '=' + encodeURIComponent(element)); |
| UPDATE wp_options SET option_value = REPLACE(option_value, 'https://dev.mysite.com', 'https://mysite.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET post_content = REPLACE (post_content, 'https://dev.mysite.com', 'https://mysite.com'); | |
| UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'https://dev.mysite.com','https://mysite.com'); | |
| UPDATE wp_comments SET comment_content = REPLACE (comment_content, 'https://dev.mysite.com', 'https://mysite.com'); | |
| UPDATE wp_comments SET comment_author_url = REPLACE (comment_author_url, 'https://dev.mysite.com','https://mysite.com'); | |
| UPDATE wp_posts SET guid = REPLACE (guid, 'https://dev.mysite.com', 'https://mysite.com') WHERE post_type = 'attachment'; | |
| -- мультисайт | |
| UPDATE wp_blogs SET domain = REPLACE (domain, 'dev.mysite.com', 'mysite.com'); | |
| UPDATE wp_site SET domain = REPLACE (domain, 'dev.mysite.com', 'mysite.com'); |
| <?php | |
| /** | |
| * Class OutputmodMinify | |
| * | |
| * include_once 'OutputmodMinify.php'; | |
| * $html = \OutputmodMinify::minify($html); | |
| */ | |
| /** | |
| * ----------------------------------------------------------------------------------------- |