[wp-trac] [WordPress Trac] #12175: Issues using mod_rewrite / mod_cache together (apache)

WordPress Trac noreply at wordpress.org
Fri Jul 26 10:10:36 UTC 2019


#12175: Issues using mod_rewrite / mod_cache together (apache)
--------------------------+--------------------------
 Reporter:  hurikhan77    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  wontfix
 Keywords:  close         |     Focuses:  performance
--------------------------+--------------------------
Changes (by hurikhan77):

 * status:  reopened => closed
 * resolution:   => wontfix


Comment:

 After all this time, I decided that `mod_cache` is just broken by design.
 At least it not made to be used as a front-end cache. We saw similar
 behavior with 404 errors resulting from this rewrite rule. In the end, we
 ditched `mod_cache` and placed Varnish or caching nginx in front of
 WordPress. When used together with W3 Total Cache plugin, this greatly
 boosts performance much more than `mod_cache` could ever do.

 Take note, tho, that Varnish is only recommended to be used as a frontend
 for single web application only, and it needs configuration changes
 specially tailored towards the backend web application - the default
 configuration has a lot of annoying edge cases. So this won't work well
 for caching multiple sites in a shared hosting environment. In this case,
 I'd recommend going the nginx route.

 I'm closing this again because I no longer consider it as an issue (as the
 WP devs also do). I wonder why this was resurrected anyways given it is
 several years old. Or maybe I just got notified lately due to some other
 trigger. But this should be closed as `wontfix`: `mod_cache` is not
 compatible in many more than just one way, and this is not just a
 WordPress issue. If anything, this should be fixed in `mod_cache` itself.


 Replying to [comment:5 wasabi_flagg]:
 > I tried to change
 > {{{
 > "RewriteRule . /index.php [L]"
 > }}}
 > into
 > {{{
 >  "RewriteRule ^(.*)$ /index.php/$1 [L]"
 > }}}
 >
 > but WordPress gives me "File not found" for every page but the homepage
 > Apache 2.4.25
 > Mod_Cache_Disk
 > Php7-FPM
 > Wordpress 5.2.2

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/12175#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list