I really need caching on, to minimize server load when usage spikes happen.

However, these spikes are always from a slash-dotting effect, so none of the users are authenticated.

So, since cache only affects unauthenticated users, could the module perhaps check for $user->uid, and rotate the logo only when there's a login, and in all other cases use the default logo?

Thanks...

Comments

pobster’s picture

Status: Active » Closed (duplicate)

Merm... I can see issues with doing this... You see, when you have caching enabled you lose certain functions (see other issues that have been posted) read that as certain important functions like file_scan_directory and other file related stuff (http://api.drupal.org/api/4.7/function/drupal_get_path_alias is another). Unfortunately logotool relies on these functions whether it's displaying a random, specified or the default logo... I'm afraid that until someone can explain the workings of may_cache to me I doubt this will ever get fixed. "May Cache" is something to do with hook_menu but it's not well documented at all and I have no idea of how it works.

Sorry to disappoint.

Pobster

pobster’s picture

Status: Closed (duplicate) » Closed (fixed)
lambert-1’s picture

Hmm...

Thanks for the response. This is such a nifty feature I can't believe it can't be done.

Suppose the paths to the files were in a database table (perhaps a cron job could periodically synch the tables with the file system, to eliminate an admin interface (there would have to be a default logo if matters got out of synch)).

Would that be a workaround?