wpsharks / comet-cache

An advanced WordPress® caching plugin inspired by simplicity.
https://cometcache.com
GNU General Public License v3.0
75 stars 17 forks source link

Feature Request: CDN #55

Closed jaswrks closed 9 years ago

jaswrks commented 10 years ago

@raamdev I'd like to request the following feature in QC Pro.

Here is a clip from a custom plugin that I've used for quite awhile now. Perhaps it could serve as a starting point for a whole new set of functionality that's offered by QC Pro when it comes to CDNs.

add_filter('pre_option_upload_path', 'cdn::uploads_path');
add_filter('pre_option_upload_url_path', 'cdn::uploads_url_path');

class cdn // Content delivery network for this site.
{
    public static function uploads_path()
        {
            return '/amazon-s3-bucket-mount';
            // Files uploaded through the WP Media Library go here.
        }

    public static function uploads_url_path()
        {
            return 'http://d1v41qemfjie0l.cloudfront.net/';
            // Files served by WordPress that reside in my `upload_path`; are served with this URL as the base.
        }
}

This code assumes that an S3 Bucket has been mounted locally, so it won't work unless a site owner can do that. Ideally, Quick Cache Pro could simplify this part further and make it easier for a novice site owner to set things up on their own.


Other Considerations...


A QC user recently wrote...

I just installed your quick cache plugin last night and I just wanted to give you a quick suggestion that I think would improve sales significantly. I was looking at the difference in the free and pro versions and seeing if I wanted to upgrade, the thing that would have made me pay the $15 upgrade right away I didn't see in the pro version. That feature is CDN image rewriting. The feature is present in both your top 2 competitors for free but your product is the easiest to use of the 3 products. I googled for the feature and found many people requesting the same feature from your product saying it's the only thing that it's missing. I also tried several other plugins along with your plugin to accomplish this feature and they wouldn't point the images to my Amazon Cloudfront CDN properly while your plugin cached the pages. As a first time user that spent an hour analyzing solutions to speed up Wordpress last night I wanted to let you know that you would have the perfect combination product if you added that one feature as caching and CDN are the top two methods to increase speed, why not make them into one super easy plugin? To keep things as simple as you have them all I would want is a single field to enter the new address to change the local image path into the CDN image path.


TODOs

ioerjfoige0439i commented 9 years ago

@raamdev Great, I can't wait to finally dump W3 Total Cache and consolidate my plugins. It's much easier for me to buy all my plugins with Web Sharks Inc. or those that work in conjunction with Web Sharks Inc. plugins (such as iDevAffiliate) than to have other 3rd party plugins that will introduce compatibility issues into my workflow. It makes it much easier to know that you guys are handling everything in house and have your best interest to squash any bugs that arise between different plugins. Good work.

ioerjfoige0439i commented 9 years ago

@clavaque @raamdev @BruceCaldwell @jaswsinc @ethanpil @Reedyseth Don't forget about Amazon S3 and Amazon Cloudfront CDN options as well :-)!

ioerjfoige0439i commented 9 years ago

@clavaque @raamdev @BruceCaldwell @jaswsinc @ethanpil @Reedyseth As well as a “Generic” origin-pull Mirror in case we want to add other CDN's like CDN77 or CDN.net

tokar86a commented 9 years ago

How is it going? Any ETA?

raamdev commented 9 years ago

@tokar86a We'll have CDN functionality released as part of ZenCache, which is coming this month (the soft launch is likely happening this week).

If you're interested in testing a beta version when that goes out, please make sure you're on the beta testers list.

ethanpil commented 9 years ago

Are we going to lose our registration when you switch over?

raamdev commented 9 years ago

Are we going to lose our registration when you switch over?

No, you won't lose anything. All existing Quick Cache Pro customers will automatically have access to ZenCache Pro.

ioerjfoige0439i commented 9 years ago

Thanks guys, just signed up for the pro beta testers list

tokar86a commented 9 years ago

Hove is it going whit this soft release?

raamdev commented 9 years ago

@tokar86a The soft release is going well. :-) We should be doing a public release next week. I'll update here again when that happens.

raamdev commented 9 years ago

CDN Integration has been released as part of the changeover to ZenCache.

See Introduction to Static CDN Filters.