Phorum cache data could overlap #688

Open
Phorum opened this Issue Jun 11, 2011 · 2 comments

Comments

Projects
None yet
2 participants
@ghost

ghost commented Jun 11, 2011

With file cache layer, when having several sites to share common phorum source dir while they have different database config, cache data could overlap between sites as it uses following code to detect actual cache dir
{{{
$PHORUM['real_cache']=$PHORUM['cache']."/".md5(FILE);
}}}
And FILE would be the same in such case. Should there be a way to avoid such situation other than hack or changing cache dir (for example, if user wants to save space for storing identical compiled templates)?

Same for apc and memcached layers - they are storing data under "$type_$key" keys without any check what is current site (even not md5(__FILE)).

Reported by: Alexey Torkhov atorkhov@gmail.com
Imported from TRAC: http://trac.phorum.org/ticket/790

@ghost

ghost commented Jun 11, 2011

I would recommend to just change the cache-dir in the settings.
just that couple of compiled template files isn't worth keeping them in one place.

By: ts77

@ghost

ghost commented Jun 11, 2011

I think we should fix this for at least memcached and apc, maybe also in the file layer while we are at it, in 5.3.

By: ts77

brianlmoon was assigned Jul 25, 2011

brianlmoon was unassigned by oricgn Sep 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment