• Resolved John Darrel

    (@johndarrel)


    Hi,

    I love your plugin. It’s really great what you did and how fast it works.

    Only one small request to be compatible with Hide My WP Ghost who changes the paths in content before saving it in the cache file.

    A hook would fix this if you add in file:
    wp-content/plugins/jch-optimize/src/Cache.php:367

    before the line:
    $file_contents = base64_encode(serialize($content));

    the hook:
    $content = apply_filters('jch-save-content', $content);

    Will look like:

    $wp_filesystem = self::getWpFileSystem();
    $content = apply_filters('jch-save-content', $content);
    $file_contents  = base64_encode(serialize($content));
    $file          = self::_getFileName($id, $page_cache);

    You can do the same with the PRO plugin too.

    Best, John

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codealfa

    (@codealfa)

    Ok thank you,

    I’ve added the line as you requested:

    $content = apply_filters('jch_optimize_save_content', $content);

    The filter is named to match the format of the other filters in the plugin.

    This will be released in the nxt version (3.0.0) I’m currently working on, in about two weeks time.

    Best regards.

    • This reply was modified 3 years, 1 month ago by codealfa.
    • This reply was modified 3 years, 1 month ago by codealfa. Reason: Added release info
    Thread Starter John Darrel

    (@johndarrel)

    Awesome. Thank you for updating the plugin.

    I will add the compatibility in hide My WP Ghost plugin too.

    Best, John

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility with Hide My WP Ghost’ is closed to new replies.