• Resolved gilmourlive

    (@gilmourlive)


    Hello again,

    The html-minify doesn’t seem to always work. I’ ve installed your plugin a few days now, and only yesterday it produced compact html code (with no white-spaces, etc).

    In the instructions of the html minify setting (if i hover over the question mark) it says that ‘It takes effect only when cache pre-loading because it takes time’. Does that mean that the Cache -> Preload -> Schedule preloader -> Activate scheduled cache preloading should be enabled? I don’t think this option was checked when plugin actually produced compact html code.

    Regarding the Schedule preloader i’ d also like to ask: Shouldn’t the preloader have the option to cache the page/post as soon as it gets created/modified and not only on regular time intervals or manually?

    My website is static (will not change in the future) and i use WordPress 6.0.

    Thank you very much.

    • This topic was modified 2 years, 8 months ago by gilmourlive.
Viewing 5 replies - 1 through 5 (of 5 total)
  • @gilmourlive Yes only if the cache pre-loading is enabled the HTML minify will work, so please make sure the cache preloading is enabled.

    The cache preloader works at certain intervals it will take some time to preload the cache once the post/page is created.

    Thread Starter gilmourlive

    (@gilmourlive)

    OK.

    So, each time the preloader works, say once a day or once per week, it rebuilds ALL pages?

    By the way, the css and javascript minify works just fine and i can see the list of files created. Should i also see an html files list, once the preloading has been completed and the html code has been minified?

    Regarding the Page cache -> Cache settings -> cache lifespan setting i’d like to ask: If it is set to a lifespan shorter than the preloader interval, this means that after that period, the pages remain uncached until the next preloading?

    Thank you.

    Plugin Contributor Venkat Raj

    (@webulous)

    Hi @gilmourlive

    > So, each time the preloader works, say once a day or once per week, it rebuilds ALL pages?

    Yes. It rebuilds ALL pages, if the cache is expired.

    > Should i also see an html files list, once the preloading has been completed and the html code has been minified?

    No there is no separate html files list. HTMl files = no. of pages/posts in site.
    Which is cached and stored in wp-content/cache/wpo-cache folder

    > Regarding the Page cache -> Cache settings -> cache lifespan setting i’d like to ask: If it is set to a lifespan shorter than the preloader interval, this means that after that period, the pages remain uncached until the next preloading?

    If cache is expired (because of shorter lifespan), then the page will be cached when a visitor visits that page. Only unvisited pages are cached during preloading

    Thread Starter gilmourlive

    (@gilmourlive)

    > If cache is expired (because of shorter lifespan), then the page will be cached when a visitor visits that page. Only unvisited pages are cached during preloading

    This means that the first visitor of an uncached page will not benefit from the plugin and also that he will produce a cached page without minified html, since this is performed only by the preloader.

    Furthermore, if visitors visit pages BEFORE the preloader has the chance to work, they ‘ll always be served pages without minified html. Maybe that’s the reason i ‘m not seeing my html minified.

    So, this is normal behavior for the plugin. Maybe this can be improved in future versions. It’s a great plugin otherwise.

    Thank you.

    @gilmourlive I’ll share your feedback with our development team, so it can be implemented in next release

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The html-minify doesn’t seem to always work’ is closed to new replies.