Plugin Directory

Changeset 2626020


Ignore:
Timestamp:
11/08/2021 09:43:49 AM (4 years ago)
Author:
sstoqnov
Message:

Fix readme

Location:
sg-cachepress/tags/6.0.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sg-cachepress/tags/6.0.3/core/Analysis/Analysis.php

    r2625977 r2626020  
    334334        // Loop the results and make the arrays consistent.
    335335        foreach ( $results as $result ) {
     336            $test_data = get_option( $result['option_name'] );
     337
     338            if ( $test_data['scores']['score']['score'] < 2 ) {
     339                $test_data['scores']['score']['score'] = $test_data['scores']['score']['score'] * 100;
     340            }
     341
    336342            $data[] = array(
    337343                'option_name' => $result['option_name'],
    338                 'result'      => get_option( $result['option_name'] ),
     344                'result'      => $test_data,
    339345            );
    340346        }
  • sg-cachepress/tags/6.0.3/readme.txt

    r2625977 r2626020  
    1212== Description ==
    1313
    14 This plugin is designed to link WordPress with the SiteGround Performance services. It WILL NOT WORK on another hosting provider.
    15 
    16 The SiteGround Optimizer plugin has few different parts handling speciffic performance optimizations:
     14This plugin is designed to link WordPress with the SiteGround Performance services. It WILL NOT WORK on another hosting provider.
     15
     16Improve your site performance in a matter of a few clicks. The SiteGround Optimizer unlocks a wide range of speed optimization features like powerful caching, front-end optimizations, automated image optimizations, lazy image loading, file compression, CSS & HTML minifications, and much more.
     17
     18The SiteGround Optimizer plugin has few different parts handling specific performance optimizations:
    1719
    1820== Configuration ==
     
    2022For detailed information on our plugin and how it works, please check out our [SiteGround Optimizer Tutorial](https://www.siteground.com/tutorials/wordpress/sg-optimizer/ "SiteGround Optimizer Tutorial").
    2123
    22 
    23 = SuperCacher Settings =
    24 
    25 In this tab, you can configure your Dynamic Caching to store your content in the server’s memory for faster access and Memcached which stores frequently executed queries to your database and reuses them for better performance. Make sure you’ve enabled them from your Site Tools or cPanel before using the plugin. You can also enable Automatic Cache purge. This will perform a Full Purge on page, posts, and category deletion, plugin and theme activation, deactivation, or update, and on WordPress core updates. Enabling the Browser-specific caching will create different cache versions based on the user agent used. From Exclude Post Types you can exclude the ones you don’t want to be cached at all. You can also exclude specific URLs or use a wildcard to exclude any sub-pages of a specific “parent-page”. We have also provided a test tool where you can check if a specific URL has Dynamic caching actually running.
    26 
    27 You can allow other user roles to flush cache using the filter we've designed for that purpose. Make sure to use the user role capatability in the filter. Here's an example of the code, you can add to your functions.php file:
     24= SiteGround Optimizer Dashboard Page =
     25
     26The Dashboard offers a quick look at the current optimization status of your website and shortcuts to the relevant optimization pages. In addition to that, since keeping your WordPress application, plugins, and themes up to date is important for your website speed and security, we’ve made sure to add a notification in the Dashboard in case your WordPress and/or plugins need an update.
     27
     28= SiteGround Optimizer Caching Page =
     29
     30On this page, you can control your Dynamic Caching which runs by default on all SiteGround servers and enable the Memcached object caching for your site. You can also enable Automatic Cache purge which will clear the cache when needed. You can now use WordPress API Cache Control checkbox if you need the WP API cache purged too. Enabling the Browser-specific caching will create different cache versions based on the user agent used. From Exclude Post Types you can exclude the ones you don’t want to be cached at all. You can also exclude specific URLs or use a wildcard to exclude any sub-pages of a specific “parent-page”. We have also provided a test tool where you can check if a specific URL has Dynamic caching actually running.
     31
     32We have a filter that allows you to control which user roles have access to flush the cache using the Purge SG Cache button.
     33
     34Here's an example of the code, you can add to your functions.php file:
    2835
    2936    add_filter( 'sgo_purge_button_capabilities', 'sgo_add_new_role' );
     
    3643    }
    3744
    38 = Environment Optimization =
    39 
    40 Here, you can force HTTPS for your site, enable or disable Gzip Compression and Browser Caching rules. You can activate Database Optimization which will remove all unnecessary items from your database and optimize its tables. If you are using the InnoDB storage engine, the optimization of tables is done automatically by the engine. Use DNS-Prefetching to increase load speeds for external resources. It works by resolving the domain name, before a resource is requested. You can also manage Heartbeat Control to modify the frequency of the WP Heartbeat for different locations. By default, the WordPress Heartbeat API checks every 15 seconds on your post edit pages and every 60 seconds on your dashboard and front end whether there are scheduled tasks to be executed. With this option, you can make the checks run less frequently or completely disable them.
    41 
    42 = Frontend Optimization =
    43 
    44 In this tab, you can enable or disable Minification of your HTML, JS and CSS resources. You can activate/deactivate JS and CSS combinations to reduce the numbers of requests to the server. With the Web Fonts Optimization we’re changing the default way we load Google fonts. A preconnect link for Google's font repository will be added in your head tag. This informs the browser that your page intends to establish a connection to another origin, and that you'd like the process to start as soon as possible. In addition, all other local fonts will be preloaded so browsers can cache and render them faster. Also when combined with CSS Combination, we will change the font-display property to swap or add it if it's missing, so we ensure faster rendering. You can Disable Emojis support in your pages to prevent WordPress from detecting and generating emojis on your pages. You can also Remove Query Strings from static resources to improve their caching.
    45 
    46 = Image Optimization =
    47 
    48 Here, you can enable or disable automatic optimization for your newly uploaded images or bulk optimize your old ones. You can enable the generation of WebP images for newly uploaded images or generate WebP copies of your existing ones. WebP is a next generation image format supported by modern browsers which greatly reduces the size of your images. If the browser does not support WebP, the original images will be loaded. If you wish, you can delete all WebP copies of your images and original images will be loaded by default. You can also enable or disable Lazy Load for various assets such as iframes, videos, thumbnails, widgets, shortcodes and more. You can also enable Lazy Load for mobile requests. You have an option to exclude specific images from Lazy Loading. This is done by adding the class of the image in the tab.
    49 
    50 You can modify the max image wight setting using the filter we've designed for that purpose. Here's an example of the code, you can add to your functions.php file:
     45= SiteGround Optimizer Environment Page =
     46
     47Here, you can force HTTPS for your site and fix insecure content errors. You can activate Database Optimization which will remove all unnecessary items from your database and optimize its tables. If you are using the InnoDB storage engine, the optimization of tables is done automatically by the engine. Use DNS-Prefetching to increase load speeds for external resources. It works by resolving the domain name, before a resource is requested. You can also manage Heartbeat Control to modify the frequency of the WP Heartbeat for different locations. By default, the WordPress Heartbeat API checks every 15 seconds on your post edit pages and every 60 seconds on your dashboard and front end whether there are scheduled tasks to be executed. With this option, you can make the checks run less frequently or completely disable them.
     48
     49= SiteGround Optimizer Frontend Optimization Page =
     50
     51The page is split into three tabs - CSS, JAVASCRIPT and GENERAL. In the CSS tab, you can enable/disable Minification of CSS files, activate/deactivate CSS combinations to reduce the numbers of requests to the server, and also Preload Combined CSS. Here you can also exclude styles from being combined/minified.
     52In the JAVASCRIPT tab, you can activate/deactivate JS minification and combination so you can reduce the script sizes as well as the number of requests made to the server. You can also Defer Render-blocking JavaScript for faster initial site load. You can also exclude specific scripts from the different types of optimizations.
     53The GENERAL tab offers you the possibility to Minify the HTML Output, which will remove unnecessary characters and reduce data size. With the Web Fonts Optimization we’re changing the default way we load Google fonts. A preconnect link for Google's font repository will be added in your head tag. This informs the browser that your page intends to establish a connection to another origin, and that you'd like the process to start as soon as possible. In addition, all other local fonts will be preloaded so browsers can cache and render them faster. Also when combined with CSS Combination, we will change the font-display property to swap or add it if it's missing, so we ensure faster rendering. You can Disable Emojis support in your pages to prevent WordPress from detecting and generating emojis on your pages. You can also Remove Query Strings from static resources to improve their caching.
     54
     55= SiteGround Optimizer Media Optimization Page =
     56
     57Here, you can configure the Image compression in order to resize your existing images and decrease the space they are occupying. The dimension of the images will not change. You can fine-tune the compression level as well as choose either original images backups are created. Use WebP Images to generate webP copies of your images. WebP is a next generation image format supported by modern browsers which greatly reduces the size of your images. If the browser does not support WebP, the original images will be loaded. You can also enable or disable Lazy Load for various assets. You can also exclude specific assets such as iframes, videos, thumbnails, widgets, shortcodes and more from the dropdown menu. You have an option to exclude specific images from Lazy Loading. This is done by adding the class of the image in the tab. Enable the Maximum Image Width if you often upload large images on your website. Enabling this will resize your existing and future images whose width exceeds 2560 px.
     58
     59You can modify the max image width setting using the filter we've designed for that purpose. Here's an example of the code, you can add to your functions.php file:
    5160
    5261    add_filter( 'sgo_set_max_image_width', 'max_image_width' );
     
    5867    }
    5968
    60 You can change the default Webp quality setting using the filter we've designed for that purpose. The default setting is 80, you can use values between 0 and 100:
    61 
    62     add_filter( 'sgo_webp_quality', 'webp_quality' );
    63     function webp_quality( $quality ) {
    64         // Add the value you want to adjust as Webp image quality.
    65         $quality = 100;
    66 
    67         return $quality;
    68     }
    69 
    70 You can change the default Webp quality type setting using the filter we've designed for that purpose. The default quality type is lossy which equals to 0, if you want to set it to lossless - adjust the type to 1 as follows:
    71 
    72     add_filter( 'sgo_webp_quality_type', 'reset_webp_quality_type' );
    73     function reset_webp_quality_type( $quality_type ) {
    74         // Add the value you want to adjust as max image width.
    75         $quality_type = 1;
    76 
    77         return $quality_type;
    78     }
    79 
    80 = Speed Test =
    81 
    82 Our performance check is powered by Google PageSpeed. Here you can check how well your website is optimized. The detailed tests result will provide you with additional information on what can be optimized more.
    83 
    84 = Full-page Caching on CloudFlare =
    85 
    86 Тhis optimization links your WordPress site with Cloudflare and sets the necessary rules and workers in order to enable full-page caching on Cloudflare edges in order to improve your TTFB and overall site performance. The tab will be available only if you have properly configured your installation to work with the CDN.
     69= SiteGround Optimizer Speed Test Page =
     70
     71Our performance check is powered by Google PageSpeed. Here you can check how well your website is optimized. The detailed test results  will provide you with additional information on what can be optimized more.
    8772
    8873= Plugin Compatibility =
     
    9479    }
    9580
    96 Preferrably, you can pass an URL to the function to clear the cache just for it instead of purging the entire cache. For example:
     81Preferably, you can pass an URL to the function to clear the cache just for it instead of purging the entire cache. For example:
    9782
    9883    if (function_exists('sg_cachepress_purge_cache')) {
     
    140125    }
    141126
    142 You can exclude external script from being combined using the filter we’ve designed for that purpose. Here’s an example of the code, you can add to your functions.php file:
     127You can exclude an external script from being combined using the filter we’ve designed for that purpose. Here’s an example of the code, you can add to your functions.php file:
    143128
    144129    add_filter( 'sgo_javascript_combine_excluded_external_paths', 'js_combine_exclude_external_script' );
     
    160145
    161146
    162 You can exclude script from being loaded asynchronous using the filter we’ve designed for that purpose. Here’s an example of the code, you can add to your functions.php file:
     147You can exclude script from being loaded asynchronously using the filter we’ve designed for that purpose. Here’s an example of the code, you can add to your functions.php file:
    163148
    164149    add_filter( 'sgo_js_async_exclude', 'js_async_exclude' );
     
    236221* emojis
    237222* images|webp
    238 * gzip
    239223* memcache
    240224* ssl|ssl-fix
     
    251235
    252236Our plugin uses a cookie in order to function properly. It does not store personal data and is used solely for the needs of our caching system.
    253 
    254237
    255238== Installation ==
     
    274257= Version 6.0.3 =
    275258Release Date: November 8th, 2021
     259
    276260* Improved translations
    277261* Improved multisite support
     
    984968== Screenshots ==
    985969
    986 1. The Super Cacher Settings tab handles your Dynamic caching and Memcached. Here, you can exclude URls from the cache, test your site and purge the Dynamic caching manually.
    987 2. In the Environment Optimization tab, you can force HTTPS for your site, switch PHP versions and enable Gzip and Browser Caching rules.
    988 3. The Frontend Optimization tab allows you to Minify HTML, CSS & JS, as well as to remove query strings from your static resources and disable the Emoji support.
    989 4. The Image Optimization tab allows you to optimize your Media Library images, aswell as adds Lazy Loading functionality for your site.
    990 5. Multisite Only! In the Global Settings tab, you can configure all options that are global for your network.
    991 6. Multisite Only! In the Per Site Defaults tab, you can configure how the new sites, added to your network will be setup.
     9701. The SiteGround Optimizer Dashboard Page offers a quick look at the current optimization status of your website, along with shortcuts to the relevant optimization pages.
     9712. The SiteGround Optimizer Caching Page handles your Dynamic caching and Memcached. Here, you can exclude URls from the cache, test your site and purge the Dynamic caching manually.
     9723. The SiteGround Optimizer Environment Page, you can force HTTPS for your site, tweak the WordPress Heartbeat Optimization, pre-fetch external domains and enable the Database Maintenance.
     9734. The SiteGround Optimizer Frontend Optimization Page allows you to Minify HTML, CSS & JS, as well as to remove query strings from your static resources and disable the Emoji support.
     9745. The SiteGround Optimizer Media Page allows you to optimize your Media Library images, aswell as adds Lazy Loading functionality for your site.
     9756. The SiteGround Optimizer Speed Test Page, allows you to test your site loading speed, aswell as additional tips on improving your site performance.
Note: See TracChangeset for help on using the changeset viewer.