Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Static CDN Filters for Sub-Domain Multisite Networks #439

Closed
raamdev opened this issue Mar 12, 2015 · 18 comments
Closed

Feature Request: Static CDN Filters for Sub-Domain Multisite Networks #439

raamdev opened this issue Mar 12, 2015 · 18 comments

Comments

@raamdev
Copy link
Contributor

@raamdev raamdev commented Mar 12, 2015

At present, to use the Static CDN Filters, a Multisite Network must be using sub-directories (e.g., example.com/site1/). ZenCache Pro running in a Multisite Network environment using sub-domains (e.g., site1.example.com) is currently NOT supported by the Static CDN Filters feature (see source code notes). It would be great to add support for sub-domains, if possible.

@isaumya
Copy link

@isaumya isaumya commented Mar 31, 2015

You guys have to make sure that you add this feature, as this is a very basic feature which is even provided by the free plugins like WP Super Cache, W3TC etc. When people install WP MU mostly they use sub-domain based as this makes more sense than subdirectory based.
So, if zencache pro cannot provide this basic feature, the first question people will ask if a free plugin can do it why can't a paid one ? lol. This is basic user's mentality.
But you guys must need to take this request seriously and to act upon it so that it can be added into the next release or so.

@raamdev
Copy link
Contributor Author

@raamdev raamdev commented Mar 31, 2015

@isaumya Thanks for your feedback. Static CDN Filters are a recent addition to ZenCache (we added that feature when we changed the Quick Cache plugin to ZenCache), so we're working to improve this feature. Adding sub-domain support is high on the list of improvements to ZenCache Pro.

@isaumya
Copy link

@isaumya isaumya commented Apr 4, 2015

So when is this feature coming up? I hope the latest release does not contain this update.

@raamdev
Copy link
Contributor Author

@raamdev raamdev commented Apr 4, 2015

@isaumya No, the latest release does not contain this feature. We'll be considering it once we begin triaiging issues for the next development cycle, which will happen once the next release has been published (currently in beta, see v150403 Release Candidate).

@isaumya
Copy link

@isaumya isaumya commented Apr 5, 2015

@raamdev I understand. This is something, I've been waiting for to do a through testing of Zencache Pro on a MU environment. :) Any eta on this? I mean like the end of this month, or the start of next month, something like this.

@raamdev
Copy link
Contributor Author

@raamdev raamdev commented Apr 6, 2015

Any eta on this? I mean like the end of this month, or the start of next month, something like this.

@isaumya We don't currently have an ETA. We try to avoid giving ETA's for things that we don't actually have an ETA for, to prevent unreasonable expectations. :-) We always prioritize fixing bugs before adding new features. We decide which features and bugs we're going to work on at the start of each new development cycle. We're currently at the end of a development cycle, so after we do the next public release (within the next day or so), we'll triage the issues and figure out what we're going to put our focus on.

@isaumya
Copy link

@isaumya isaumya commented Apr 6, 2015

Glad to know., Please let me know your decision on this after this upcoming release. This is a seriously needed feature for wp multisite ;-) and frankly after start testing this plugin I'm so happy with its code quality that I really don't want anyone to complain about your plugin just for this simple minor feature. Looking forward to it :)

@isaumya
Copy link

@isaumya isaumya commented Apr 15, 2015

Hi @raamdev Static CDN Filters on subdomain based multi site networks, not only work in subdomains, i.e site1.example.com but also not work for the primary site i.e. www.example.com. In short Static CDN filter does not work in Subdomain based multisite networks at all. Whether HTML Compressor is activated or not, that doesn't matter. I've been reviewing the cdn feature for a week now and after thorough testing I see that the CDN it self dont on subdomain based wp mu. Here are some proof.

Static CDN Config

Static CDN Filter Config

Frontend Source Code

Frontend Source Code - HTML Compressor DISABLED
** Frontend Source Code - HTML Compressor DISABLED **

Frontend Source Code - HTML Compressor ENABLED
** Frontend Source Code - HTML Compressor ENABLED **

Hope these above insights will help you to address the problem properly.

@isaumya
Copy link

@isaumya isaumya commented Apr 16, 2015

@raamdev please let me know if you are going to fix this issue in the next upcoming update of zencahe pro, otherwise I have to remove it from my production live site and have to wait for this issue to be fixed as you did not provided any eta on this yet.

@raamdev
Copy link
Contributor Author

@raamdev raamdev commented Apr 16, 2015

@isaumya Thank you for reporting that bug. This has been fixed in the latest development branch and the fix will go out with the next release.

@raamdev
Copy link
Contributor Author

@raamdev raamdev commented Apr 16, 2015

@jaswsinc writes:

I wonder if supporting sub-domain installs could be as easy as adding some new rewrite rules into .htaccess, and then routing all static resources though the CDN configured for the main site. Just a thought. A little off topic.

That's really what WordPress (when not running as a sub-domain install) does already.

@isaumya
Copy link

@isaumya isaumya commented Apr 16, 2015

Anyways guys when you are actually going to support subdomain based multi site officially. Almost all webmasters I know who are using WP MU, uses the subdomain based architecture, but the sub-directory based.

@isaumya
Copy link

@isaumya isaumya commented Apr 21, 2015

So, in the upcoming updates Zencache is going to support subdomain properly? Like cache + cdn? If it is a yes, then its an amazing news.

@lkraav
Copy link

@lkraav lkraav commented May 19, 2015

Aha, so this is why ZCP isn't doing any CDN rewriting on the subsite domain. Looking forward to the next release.

@raamdev
Copy link
Contributor Author

@raamdev raamdev commented May 21, 2015

@isaumya @lkraav This feature has been added and ZenCache Pro Static CDN Filters now support sub-domains in WordPress Multisite Network. This feature will go out with the next release.

@raamdev
Copy link
Contributor Author

@raamdev raamdev commented May 21, 2015

Next release changelog:

  • Enhancement (Pro): Static CDN Filters now support sub-domains when ZenCache is running inside a WordPress Multisite Network. Props @jaswsinc. See Issue #439.
@isaumya
Copy link

@isaumya isaumya commented May 21, 2015

Hi @raamdev I'm quite glad to see this feature at last. Can't wait to test it :)

raamdev added a commit that referenced this issue Jun 5, 2015
**RELEASE CANDIDATE**

- **New Feature!** The free version of ZenCache now supports several new options that were previously only available in the Pro version. You can now toggle the Auto-Clear Cache routines for the Home Page, Posts Page, Author Page, Category Archives, Tag Archives, Custom Term Archives, RSS/RDF/Atom Feeds, and XML Sitemaps. This gives you more control over exactly when ZenCache purges the cache for these parts of your site. See _ZenCache → Plugin Options → Clearing the Cache_ for further details.
- **New Feature!** URI Exclusion Patterns are now available in ZenCache Lite! This previously Pro-only feature is now available in the free version of ZenCache and allows you to exclude a list of URIs from being cached by ZenCache. See _ZenCache → Plugin Options → URI Exclusion Patterns_ for further details.
- **New Feature!** HTTP Referrer Exclusion Patterns are now available in ZenCache Lite! This previously Pro-only feature is now available in the free version of ZenCache and allows you to define a list of referring URLs or domains that send you traffic. When ZenCache sees a request coming from one of those URLs or domains, it will not cache that particular request. See _ZenCache → Plugin Options → HTTP Referrer Exclusion Patterns_ for further details.
- **New Pro Feature!**: HTML Compression now supports compressing JSON (in addition to the already supported HTML, JavaScript, and CSS compression). Props @jaswsinc. See [Issue #469](#469).
- **New Pro Feature!**: Static CDN Filters now supports multiple CDN hostnames. This allows you to configure more than one CDN hostname, also referred to as Domain Sharding. This makes it possible for site owners to work around web browser concurrency limits, allowing the browser to download many resources simultaneously, which increases overall speed. Props to @isaumya and @jaswsinc. See [Issue #468](#468).
- **Enhancement** (Pro): Static CDN Filters now also apply to any static files that are referenced inside CSS files. Props @jaswsinc. See [Issue #461](#461).
- **Enhancement**: Completed a major restructure of the entire codebase to improve modularity and dependency management. Props @jaswsinc.
- **Enhancement** (Pro): Static CDN Filters now supports the ability to configure separate CDN hostname(s) for each domain (or sub-domain) that you run in a WordPress Multisite Network. Props @jaswsinc. See [Issue #475](#475).
- **Enhancement** (Pro): Static CDN Filters now support sub-domains when ZenCache is running inside a WordPress Multisite Network. Props @jaswsinc. See [Issue #439](#439).
- **Bug Fix** (Pro): Static CDN Filters were not being applied to the primary site on WP Multisite installations that used subdomains. (While subdomains are not currently supported by Static CDN Filters, the primary site can still use this feature.) Props to @isaumya for discovering this bug. See [Issue #470](#470).
@raamdev
Copy link
Contributor Author

@raamdev raamdev commented Jun 9, 2015

ZenCache v150605 (Release Candidate) is now available. This release candidate includes the enhanced Static CDN Filters that now work with sub-domains in a WordPress Multisite Network.

If you'd like to help with testing this release candidate of ZenCache before the public version is released, please see the link above. If you want to be notified of future release candidate announcements, please sign-up here.

raamdev added a commit that referenced this issue Jun 27, 2015
- **Restructured Codebase**: The entire ZenCache codebase has been restructured to improve performance, enhance flexibility, and make it easier to build in new features!
- **New Feature!** The free version of ZenCache now supports several new options that were previously only available in the Pro version. You can now toggle the Auto-Clear Cache routines for the Home Page, Posts Page, Author Page, Category Archives, Tag Archives, Custom Term Archives, RSS/RDF/Atom Feeds, and XML Sitemaps. This gives you more control over exactly when ZenCache purges the cache for these parts of your site. See _ZenCache → Plugin Options → Clearing the Cache_ for further details.
- **New Feature!** URI Exclusion Patterns are now available in ZenCache Lite! This previously Pro-only feature is now available in the free version of ZenCache and allows you to exclude a list of URIs from being cached by ZenCache. See _ZenCache → Plugin Options → URI Exclusion Patterns_ for further details.
- **New Feature!** HTTP Referrer Exclusion Patterns are now available in ZenCache Lite! This previously Pro-only feature is now available in the free version of ZenCache and allows you to define a list of referring URLs or domains that send you traffic. When ZenCache sees a request coming from one of those URLs or domains, it will not cache that particular request. See _ZenCache → Plugin Options → HTTP Referrer Exclusion Patterns_ for further details.
- **New Pro Feature!**: HTML Compression now supports compressing JSON (in addition to the already supported HTML, JavaScript, and CSS compression). Props @jaswsinc. See [Issue #469](#469).
- **New Pro Feature!**: Static CDN Filters now supports multiple CDN hostnames. This allows you to configure more than one CDN hostname, also referred to as Domain Sharding. This makes it possible for site owners to work around web browser concurrency limits, allowing the browser to download many resources simultaneously, which increases overall speed. Props to @isaumya and @jaswsinc. See [Issue #468](#468).
- **Enhancement** (Pro): Static CDN Filters now includes proper support for WordPress Multisite Networks, including support for subdomains (full support for Domain Mapping coming in the next release). If you're running a WordPress Multisite Network and want to configure a CDN, see [this KB Article](http://zencache.com/kb-article/static-cdn-filters-for-wordpress-multisite-networks/) for further details.
- **Enhancement** (Pro): Static CDN Filters now also apply to any static files that are referenced inside CSS files. Props @jaswsinc. See [Issue #461](#461).
- **Enhancement**: Completed a major restructure of the entire codebase to improve modularity and dependency management. Props @jaswsinc.
- **Enhancement** (Pro): Static CDN Filters now supports the ability to configure separate CDN hostname(s) for each domain (or subdomain) that you run in a WordPress Multisite Network. Props @jaswsinc. See [Issue #475](#475).
- **Enhancement** (Pro): Static CDN Filters now support subdomains when ZenCache is running inside a WordPress Multisite Network. Props @jaswsinc. See [Issue #439](#439).
- **Bug Fix** (Pro): Static CDN Filters were not being applied to the primary site on WP Multisite installations that used subdomains. Props to @isaumya for discovering this bug. See [Issue #470](#470).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants