Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter JibsouX

    (@jibsoux)

    Hellow again i have an other sugestion to improve the efficiency of the cache :
    Can you add that kind of script to minify the OUTPUT code : like that the cache “XXX.HTML” created is minified :
    http://www.willpeavy.com/minifier/
    https://github.com/cferdinandi/html-minify/

    Thread Starter JibsouX

    (@jibsoux)

    I have made a combo betwin Gator an HTML-Minify (link up there)
    It work well look : http://preuves-par-images.fr/

    i have simply commented the line [22>28] and [89] of the html-minify-process.php
    it notify the compression gain in the output html on a new line..

    i think you can combine the two easely and make a litle checkbox to activate it or not !

    (ps : in my site you cant right clic or other contextual menu, it’s normal)

    Plugin Author GatorDog

    (@gatordog)

    I take it that this plugin does not work with GatorCache? The reason is that it does not close the buffer, and relies upon a callback for the named buffer. I think this is similar to what the WP HTTPS plugin does. Are you looking to add support for the html minify plugin, or to add its functionality to the GatorCache codebase?

    Thread Starter JibsouX

    (@jibsoux)

    the plugin look like to work for me but i haven’t chek for the buffer.. wordpress by default close it automatically, no ?
    and ob_end_flush() isn’t needed in MOST cases because it is called automatically at the end of script execution by PHP itself when output buffering is turned on either in the php.ini or by calling ob_start().

    the thing i whant to do is add its functionality to the GatorCache codebase, like that your cache created (output : GZ,HTML) will be minified

    the functionality will be activate by a checkbox in the Gator setting

    me there i simple add the plugin and activate it so Gator accross html minify seem to work the output is well minified and the cache created is based on the minified output but i haven’t look for bug like you describe : buffer and callback…

    Plugin Author GatorDog

    (@gatordog)

    Gator Cache is hooked on a later hook than most plugins that manipulate the WordPress content with php buffering. So it has to destroy the preceeding buffers to deliver the final content. What is the plugin that you are using for the minification? Or is it custom code? If it’s a open source plugin, I’ll add the named buffer to the exceptions. In the case of custom code, a hook can be employed where you can add an exception in your code.

    Thread Starter JibsouX

    (@jibsoux)

    the plugin for minified the output html is
    https://github.com/cferdinandi/html-minify/
    https://mega.co.nz/#!H1JVCaAD!OORe3D9To_b8wH1JD9KhvXCbuTstQMRbnRjqxHFd4dI

    ah okey i see [

    So it has to destroy the preceeding buffers to deliver the final content

    ] double job to do..

    and dont you think it is possible to add it like a new capacity for GATOR ?

    Plugin Author GatorDog

    (@gatordog)

    Thanks for the quick response. Will take a look at the plugin and figure out the best way for you to implement it.

    As far as the buffers, you’re right, it is repetitive. That’s the nature of WordPress plugins… it does takes a little work to adjust for compatibility. For example, in the case of WP HTTPS, Gator Cache actually uses their generated output buffer and captures that for the final content. The work around for the minification will be similar.

    Plugin Author GatorDog

    (@gatordog)

    @jibsoux, actually the html minify plugin is compatible with GatorCache, I checked it out the other day. It’s hooked on wp_head, after init and wp, so it’s already done by the time GatorCache handles its buffer. The result is a cached page that has been minified.

    Thanks for the info about the feeds. Actually it wasn’t designed to cache them, however, if the global post is in scope, it will be cached. The next version has support for feeds and will be out within the next couple days.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Want to cache for for logged-in Users’ is closed to new replies.