• Resolved alx359

    (@alx359)


    Excited to take PhastPress on a test drive under WAMP. Have disabled wp-fastest-cache, OptiMole, and whatever other custom optimizations I could think of, but still get that red scary notice in the PP settings:

    ERROR: Cache failed, but no error was reported!

    Any suggestions what’s wrong and how to fix it? Some cache files still seem getting generated in wp-content\cache\phast.<guid>

    A few other questions:
    – Does PP serves device-optimized images (like OptiMole), or just sticks to the predefined theme sizes?
    – Any special considerations when working with the free Cloudflare CDN (via wp-fastest-cache)?
    – Looking at the wp-fastest-cache settings for PP I’m feeling confused. After switching all those off, what other important things such cache plugin does that PP doesn’t?

    Also, would you recommend a PP compatible cache plugin that can create different cached pages depending on browser versions? For example, I’m enqueuing different CSS/JS targeting IE11 (that as is known doesn’t support conditional includes) but haven’t found a plugin yet to cache that. Hope that isn’t an issue with PP?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter alx359

    (@alx359)

    Page html seems optimized, but debug.log now is choked full with entries like these:

    [08-Jun-2020 22:07:22] 44275088	images	Kibo\Phast\Filters\Image\Composite\Filter	3066	Image filter exception: Filter: Kibo\Phast\Filters\Image\ImageAPIClient\Filter Exception: Kibo\Phast\Filters\Image\Exceptions\ImageProcessingException Msg: Image API response is empty Code: 0 File: D:\domains\www.domain.com\wp-content\plugins\phastpress\sdk\phast.php Line: 3066
    [08-Jun-2020 22:14:46] 49178808	images	Unauthorized exception: Invalid token in request: src=https%3A%2F%domain.com%2Fwp-content%2Fuploads%2Fa4-mother-child-11__fr-1229x1536.jpg&service=images&cacheMarker=1590170411-666799&token=baad3d78f381ecc5
    [08-Jun-2020 22:15:26] 94784441	images	Unauthorized exception: Invalid token in request: src=https%3A%2F%domain.com%2Fwp-content%2Fuploads%2Foa-east-woman-06-247x296.jpg&service=images&width=247&height=296&cacheMarker=1590170436-53713&token=e9c9030669a03a76
    [08-Jun-2020 22:15:26] 16148786	bundler	Kibo\Phast\Services\Bundler\Service	Could not resolve ref CKz27fz8WAk

    Perhaps there’s currently an issue with your image server API?

    Thread Starter alx359

    (@alx359)

    This afternoon re-activated PP once again. Everything seems working normally now. Have you restarted your API? Still getting sporadic entries like this:

    52968537 images Kibo\Phast\Filters\Image\Composite\Filter 3066 Image filter exception: Filter: Kibo\Phast\Filters\Image\ImageAPIClient\Filter Exception: Kibo\Phast\Filters\Image\Exceptions\ImageProcessingException Msg: Image API response is empty Code: 0 File: D:\domains\www.mydomain.com\wp-content\plugins\phastpress\sdk\phast.php Line: 3066

    EDIT: the red thingy just reappeared. ??

    PS: I like your plugin very much and really wish to make it work well. Especially like how much clever work it does in such a minimalist mindset. I don’t like the approach of many others of mashing together a bunch of heavy plugins with so many overlapping features.

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @alx359,

    Thanks for trying out PhastPress.

    I investigated the caching issue, and it turns out it doesn’t work on Windows, at least not with WampServer. I’ve fixed this in the latest release 1.59.

    Could you update to this release and reload the settings page a few times to check that the error is now gone?

    After that, could you reload your site twice and check the error log for those two reloads only. If you still get the image errors, please let me know.

    –Albert

    Thread Starter alx359

    (@alx359)

    Thank you, Albert! Did as you said and everything seems working smoothly now. Kudos! ??

    *

    Just deployed PhastPress + WPFC on live (Linux on DigitalOcean). What first noticed is a 14% drop in GTMetrix because of images like these that’s said ain’t scaled:

    The following images are resized in HTML or CSS. Serving scaled images could save 151.0KiB (79% reduction).
    https://domain.com/wp-content/plugins/phastpress/phast.php?service=images&width=247&height=296&src=https%3A%2F%2Fdomain.com%2Fwp-content%2Fuploads%2Fa4-madonna-and-child-y17-247x296.jpg&cacheMarker=1589136260-50618&token=4c1fe9b43a6b27c8 is resized in HTML or CSS from 247x296 to 111x133. Serving a scaled image could save 32.8KiB (79% reduction).
    https://domain.com/wp-content/plugins/phastpress/phast.php?service=images&width=247&height=296&src=https%3A%2F%2Fdomain.com%2Fwp-content%2Fuploads%2Fa4-madonna-and-child-y17__bk-247x296.jpg&cacheMarker=1589136260-33684&token=7d4c0b9ca1bbc507 is resized in HTML or CSS from 247x296 to 111x133. Serving a scaled image could save 22.1KiB (79% reduction).

    I’m under the impression that device-scaling on-the-fly is supported, same like OptiMole does but minus the CDN? I’m coming from a caching solution of WPFC+Cloudflare+OptiMole.

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @alx359,

    Great, glad to hear.

    There should never be a drop in the scores from PhastPress off to PhastPress on, so that might indicate something else going wrong. If you share the site you’re working on, I can check it out. (If you don’t want to share the URL publicly, you can find my contact details in the plugin description.)

    There is no device-specific image scaling (yet). If you turn off PhastPress image optimization, you might be able to use Optimole to do that (this is the first time I learn of that plugin, sounds great, but I haven’t tried it yet).

    Regarding your initial questions:

    – Any special considerations when working with the free Cloudflare CDN (via wp-fastest-cache)?

    I’m a little confused, because I don’t understand what WP Fastest Cache has to do with Cloudflare–as far as I know, they are independent. Are you using Cloudflare for your entire site, or only to host images? Using Cloudflare for your entire site, and optimizing it with PhastPress is supported, except that unfortunately in this case PhastPress cannot deliver WebP images, and you have to use Cloudflare Polish to get WebP.

    – Looking at the wp-fastest-cache settings for PP I’m feeling confused. After switching all those off, what other important things such cache plugin does that PP doesn’t?

    Caching. Caching means saving the page the first time it is loaded, so it doesn’t have to be generated again and again. WP Fastest Cache also does many other optimizations, which are not compatible with PhastPress (because PhastPress does them itself). WP Super Cache, for example, does caching without any other optimizations, which is why I recommend it for use with PhastPress.

    If PhastPress is working well for you, I’d really appreciate it if you left a review here. If you have any other questions or problems, please let me know. ??

    –Albert

    Thread Starter alx359

    (@alx359)

    Hi Albert,

    There should never be a drop in the scores from PhastPress off to PhastPress on

    The drop in the scores is when compared to OptiMole.

    The description says:

    Phast converts JPEG images into WebP for supporting browsers.

    So PP takes whatever responsive size is already in the src/srcset and saves locally a WebP image converted via your API? BTW, does PP do lazyload?

    … what WP Fastest Cache has to do with Cloudflare…

    WPFC has a Cloudflare integration option already built-in. When switched on, it automatically disables whatever CF settings are incompatible with itself.

    I’m using CF for the entire site, and OptiMole for their image optimizations served via their CDN: device-dependent jpg/WebP generation, and lazy-load. According their representatives, OM should work fine with CF out of the box, so no need of CF Enterprise. But OM is a paid service after all too, based on allowances that could change at moment’s notice. Was hoping PP to get to do the same thing with one plugin less to mess into the optimization flow.

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @alx359,

    So PP takes whatever responsive size is already in the src/srcset and saves locally a WebP image converted via your API? BTW, does PP do lazyload?

    Correct. The one thing it does extra is that if you have an image with fixed width/height attributes it will resize the image to that size.

    There is no lazyload (yet), because when PhastPress was developed Google PageSpeed didn’t check for it (and also because I think it doesn’t really benefit the user experience).

    But you should be able to use a plugin for that, if you need it.

    WPFC has a Cloudflare integration option already built-in. When switched on, it automatically disables whatever CF settings are incompatible with itself.

    Ah, I see, thanks. Yeah, that looks fine. Cloudflare’s defaults are anyway compatible with PhastPress. Rocket Loader and minification are not enabled by default.

    OptiMole looks really nice, and I was thinking to add the same adaptive image sizing to PhastPress, but it’s not there yet…

    So for now, if you need that, you’ll have to use OptiMole. But if you’re able to spend a little time on the theme/CSS, just size your images properly and enable Cloudflare Polish for WebP (you don’t need Enterprise, just Pro).

    –Albert

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘ERROR: Cache failed, but no error was reported!’ is closed to new replies.