Cache Problem w/ Drupal 4.5+ and Mac OS X

dsbaha - December 30, 2004 - 16:42

Forgive me if this has already been covered, I've been searching for a long time now (about 1 Week). Anyways, here it goes:

Problem appears both Drupal 4.5.0, 4.5.1, and CVS.

When I have the cache enabled, sometimes (not always) it appears that Drupal caches the gziped output of a page, so when people visit my site, they actually see nothing but binary characters (for example, open a .exe file in notepad, you'll get the same type of result).

To remedy this problem on my system, I will either have to issue the "delete from cache" statement in the MySQL Console, or disable the cache completly. Both of which I really don't want to do.

My Systems Specs are:

MySQL 4.0.18
PHP 4.3.2 (Zend Engine 1.3.0)
Apache 1.3.33 (Darwin)
Mac OS X 10.3.7

If anyone can help me, that would be great! Thank you in advance.
BTW - Later when it happens again (not if) I will copy and paste the output I get.

Other people have reported

killes@www.drop.org - December 30, 2004 - 17:04

Other people have reported this problem as well. I do not fully understand why it happens, though. It might be a conflict with zlib compression. If you have that enabled try disabling it and switch to mod_gzip.
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.

Ok, that is a bug in Drupal

killes@www.drop.org - December 30, 2004 - 17:27

Ok, that is a bug in Drupal which is unrelated to caching. The fix is already in cvs and will be in the next bugfix release.
If you don't want to wait, just modify the first line in module_set_filename() in module.inc to read "static $list = array();".
See:
http://cvs.drupal.org/viewcvs/drupal/drupal/includes/module.inc?r1=1.58....
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.