• Resolved georgepennet

    (@georgepennet)


    Hi!

    I saw that you had similar question about this but it didn’t resolved my issue.

    * Im not using shared hosting. It’s a VPS managed by an administrator.

    Everything starts to happening after enabling CDN.

    Any ideas why?

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @georgepennet

    Thank you for reaching out and I am happy to assist you with this.
    What is the CDN type you are using for CF CDN – Push or Pull?
    Just to be clear, the problem is when you are uploading images to the media library?
    Thanks!

    Thread Starter georgepennet

    (@georgepennet)

    Pull – but to be honest I’ve noticed that any tasks in even other plugins that requires “loading” doesn’t work when total cache is enabled. For example WP MEDIA FOLDER – when I’m clicking on sync button it keeps spinning. Over and over. Once total cache is disable it works like a charm. To be clear – even without wp media folder plugin I have same issues. So I’m not sure if this is a CDN issue itself but maybe whole plugin for some reason is slowing down (?) my wp-admin.

    Thread Starter georgepennet

    (@georgepennet)

    My settings:

    Page cache: enabled (Disk enhanced
    Minify: Disabled

    Object cache: enabled (memcached)
    Browser cache: enabled

    CDN: Disabled for now (still issue with slow wp-admin and can’t do a lot of things on Wp Media folder plugin (no issues when plugin is fully disabled).

    Thread Starter georgepennet

    (@georgepennet)

    Need to run more testing but it seems that object caching is causing this.

    Thread Starter georgepennet

    (@georgepennet)

    Yep. Sorry for spamming but just wanted to let you know that in my case object caching is causing a lot of issues so I disabled it.

    As for the CDN. I will use WP MEDIA FOLDER cloud Addon to sync all my media library with s3 bucket and then serve it from Cloudfront. But this way I can only serve images. How I could completely disable media (images mostly) CDN in total cache?

    I am also wondering if I will be able to use the same s3 bucket and distribution that I will be using for WP Media Folder Cloud Addon? Or is it better and simpler to make a separate bucket and distrsubution for assets and another for images.

    Let me give you an example:

    – example1forassets.cloudfront.net used with Total cache, pull option – only for files, css, js etc. Without any media files.

    – example2formedia.cloudfront.net – With WP Media Folder Cloud Addon – all photos stored in S3 bucket and serve via CloudFront

    I would be grateful for help :).

    Thanks.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @georgepennet

    Thank you for all the information you provided.
    You may want to try and restart the Memcached server and see if the problem with uploading images and OC is gone. We are working on improving the Object caching in future releases.
    AS for the Image question, since WP Media Folder has Amazon S3 full integration, you can exclude images from being uploaded to the CDN in Performance>CDN>Advanced>Rejected files:
    I hope this helps!

    Thread Starter georgepennet

    (@georgepennet)

    Ok thank you. I’ll try with 2 distribution option then. One for assets, second one for images.

    Should I also uncheck Host attachments option?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @georgepennet

    You should keep that option enabled since the images you are referring to are in a separate folder.
    Thanks!

    Thread Starter georgepennet

    (@georgepennet)

    Ok. Last question. What settings I should have to make sure that my website is always up to date. I would like at least 30minutes refresh

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @georgepennet

    Can you please specify what do you mean by “Always up to date”?
    In Performance>Page Cache>Purge Policy, you can specify when the cache will be purged. So once this is defined, the cache will be purged after a post/article update, new post-release, etc.
    Is this what you are referring to?
    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Total Cache with CloudFront CDN – slow image upload’ is closed to new replies.