Projects ⇒ Bugs ⇒ #663: fields dropped but cache not deleted ⇒ CPG Dragonfly™ CMS
Bug #663 fields dropped but cache not deleted
Project: Dragonfly 9.0.3 -> 9.3 Category: *CPG Core Issues
Submitted: Monday, November 14, 2005 (10:43:39) Modified: Saturday, December 03, 2005 (07:14:41)
Status: Bogus Assigned to:
PHP Version: Irrelevant HTTPD Server: Apache 1.3

View/Vote Add Comment

by: alva
In cvs/html/admin/modules....php?v=9.9

When fields are dropped from $user_prefix.'users' the cache should also be deleted, I think.

Reproduce code:
lines 86-90:

if ($db->sql_numrows($result) == 1) { $db->sql_query("DELETE FROM ".$user_prefix."_users_fields WHERE field='$fieldname'",false,__FILE__,__LINE__); $db->sql_query("ALTER TABLE ".$user_prefix."_users DROP $fieldname",false,__FILE__,__LINE__); $db->sql_query("ALTER TABLE ".$user_prefix."_users_temp DROP $fieldname",false,__FILE__,__LINE__); }

Shouldn't the following be added?


Expected result:
$userinfo[] deleted from cache so that the dropped fields will no longer be available to any script.

Actual result:
Fields are dropped from the database but are still in cache
by: DJMaze
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation
and the instructions on how to report a bug.

Fixes itself when session dies not the cache
User Info

Welcome Anonymous


Support for DragonflyCMS in a other languages: