Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Why disabling cache in safe-mode?

UserPost

2:16 pm
March 4, 2009


Uli

Member

posts 6

1

Why is the cache disabled in safemode? e.g. when running php as fastcgi every file gets created under the user php is running on. So no "ghost"-files. Make it optional, i want to decide that!

Thanks!

12:34 pm
March 5, 2009


Kevin

Admin

posts 2402

2

Role Scoper's persistent cache is a port of WordPress 2.3's cache.php (cache file storage was removed from it in WP 2.5). I just carried the safe_mode check over from the WP code, and have never scrutinized it.

If you want to pursue this, edit your plugins/role-scoper/hardway/cache-persistent.php to comment out all the code that pertains to ini_get('safe_mode'). Then let me know how it goes and if all is well I will make a change in the RS code.

4:23 pm
March 5, 2009


Uli

Member

posts 6

3

That is how i got it circumvented. I'm using it right now and it works just fine on my host.

I'm running apache2.2 with mod_fcgid and php5.

So perhaps you now can make it optional :)

Thank you very much for all your work!

10:43 am
March 9, 2009


Kevin

Admin

posts 2402

4

The next version of Role Scoper will skip the safe_mode check if you put

define ( 'SCOPER_SAFE_MODE_CACHE', true );

in wp-config.php

11:03 am
March 9, 2009


Uli

Member

posts 6

5

Great! Thank you very much!


About the Agapetry forum

Currently Online:

14 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1186

Posts: 5409

Members:

There are 1176 members

There are 1 guests


Kevin has made 2402 posts

Top Posters:

metal450 - 159

Ragnar - 105

YikYak - 70

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin