Plugin Directory

Changeset 2578286


Ignore:
Timestamp:
08/04/2021 05:46:47 PM (5 years ago)
Author:
speedien
Message:

v1.0.8

Location:
speedien
Files:
5 edited
10 copied

Legend:

Unmodified
Added
Removed
  • speedien/tags/1.0.8/advanced-cache.php

    r2578285 r2578286  
    99}
    1010
    11 if(!empty($_GET['no-optimization'])) {
     11if(!empty($_GET['no-optimization']) || !empty($_GET['PageSpeed'])) {
    1212  return false;
    1313}
  • speedien/tags/1.0.8/readme.txt

    r2578285 r2578286  
    55Tested up to: 5.8
    66Requires PHP: 5.6
    7 Stable tag: 1.0.7
     7Stable tag: 1.0.8
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    137137== Changelog ==
    138138
     139= 1.0.8 - 4 Aug, 2021 =
     140- Improved cache purge error handling
     141- Added cache bypass mechanism for Divi page builder
     142
    139143= 1.0.7 - 30 Jun, 2021 =
    140144- Added support for defining credentials through wp-config.php
  • speedien/tags/1.0.8/speedien.php

    r2578285 r2578286  
    77 * Text Domain:     speedien
    88 * Domain Path:     /
    9  * Version:         1.0.7
     9 * Version:         1.0.8
    1010 */
    1111
  • speedien/tags/1.0.8/speedien_cache.php

    r2578285 r2578286  
    99    foreach($speedien_cache_exclusions as $slug)
    1010    {
    11         if(strpos($_SERVER['REQUEST_URI'], $slug) !== false)
     11        if(strpos(strtolower($_SERVER['REQUEST_URI']), $slug) !== false)
    1212        {
    1313            $bypass_cache = 1;
  • speedien/tags/1.0.8/speedien_purge_hooks.php

    r2578285 r2578286  
    1010add_action('edit_attachment', 'speedien_purge_post', 10, 2);
    1111add_action('wpmu_new_blog', 'speedien_purge_post', 10, 2);
    12 add_action('transition_post_status', 'speedien_purge_post', 10, 2);
     12add_action('transition_post_status', 'speedien_purge_cpt', 10, 3);
    1313add_action('edit_term', 'speedien_purge_post', 10, 2);
    1414add_action('delete_term', 'speedien_purge_post', 10, 2);
    1515
    1616
    17 function speedien_purge_post($post_id, $post)
     17function speedien_purge_post($post_id, $post = NULL)
    1818{
    1919    $removeChar = ["https://", "http://"];
     
    3333    }
    3434
     35}
     36
     37function speedien_purge_cpt($new_status, $old_status, $post)
     38{
     39    speedien_purge_post($post->ID, $post);
    3540}
    3641
  • speedien/trunk/advanced-cache.php

    r2552371 r2578286  
    99}
    1010
    11 if(!empty($_GET['no-optimization'])) {
     11if(!empty($_GET['no-optimization']) || !empty($_GET['PageSpeed'])) {
    1212  return false;
    1313}
  • speedien/trunk/readme.txt

    r2572431 r2578286  
    55Tested up to: 5.8
    66Requires PHP: 5.6
    7 Stable tag: 1.0.7
     7Stable tag: 1.0.8
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    137137== Changelog ==
    138138
     139= 1.0.8 - 4 Aug, 2021 =
     140- Improved cache purge error handling
     141- Added cache bypass mechanism for Divi page builder
     142
    139143= 1.0.7 - 30 Jun, 2021 =
    140144- Added support for defining credentials through wp-config.php
  • speedien/trunk/speedien.php

    r2556538 r2578286  
    77 * Text Domain:     speedien
    88 * Domain Path:     /
    9  * Version:         1.0.7
     9 * Version:         1.0.8
    1010 */
    1111
  • speedien/trunk/speedien_cache.php

    r2556538 r2578286  
    99    foreach($speedien_cache_exclusions as $slug)
    1010    {
    11         if(strpos($_SERVER['REQUEST_URI'], $slug) !== false)
     11        if(strpos(strtolower($_SERVER['REQUEST_URI']), $slug) !== false)
    1212        {
    1313            $bypass_cache = 1;
  • speedien/trunk/speedien_purge_hooks.php

    r2517881 r2578286  
    1010add_action('edit_attachment', 'speedien_purge_post', 10, 2);
    1111add_action('wpmu_new_blog', 'speedien_purge_post', 10, 2);
    12 add_action('transition_post_status', 'speedien_purge_post', 10, 2);
     12add_action('transition_post_status', 'speedien_purge_cpt', 10, 3);
    1313add_action('edit_term', 'speedien_purge_post', 10, 2);
    1414add_action('delete_term', 'speedien_purge_post', 10, 2);
    1515
    1616
    17 function speedien_purge_post($post_id, $post)
     17function speedien_purge_post($post_id, $post = NULL)
    1818{
    1919    $removeChar = ["https://", "http://"];
     
    3333    }
    3434
     35}
     36
     37function speedien_purge_cpt($new_status, $old_status, $post)
     38{
     39    speedien_purge_post($post->ID, $post);
    3540}
    3641
Note: See TracChangeset for help on using the changeset viewer.