Plugin Directory

Changeset 2988662


Ignore:
Timestamp:
11/03/2023 06:30:48 PM (2 years ago)
Author:
Lugat
Message:

added footprint in html code

Location:
jinx-fast-cache/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jinx-fast-cache/trunk/index.php

    r2988655 r2988662  
    55   * Plugin URI: https://wordpress.org/plugins/jixn-fast-cache/
    66   * Description: Blazing fast full page cache.
    7    * Version: 0.7.4
     7   * Version: 0.7.5
    88   * Author: Jinx Digital <hello@jinx-digital.com>
    99   * Author URI: http://jinx-digital.com
  • jinx-fast-cache/trunk/src/Front.php

    r2893514 r2988662  
    8181     
    8282      add_filter('jinx_fast_cache_output', function($html) {
    83         return apply_filters('jinx_fast_cache_minify', true) ? Helper::minify($html) : $html;
    84       });
     83       
     84        if (apply_filters('jinx_fast_cache_minify', true)) {
     85          $html = Helper::minify($html);
     86        }
     87       
     88        $date = (new \DateTime)->format('c');
     89       
     90        $html .= PHP_EOL."<!-- Cached by Jinx Fast-Cache - https://jinx-digital.com - Last modified: {$date} -->";
     91       
     92        return $html;
     93       
     94      });
    8595     
    8696      add_shortcode('jinx_fast_cache_inject', function($attr, $content) {
Note: See TracChangeset for help on using the changeset viewer.