Index: ksycoca.cpp
===================================================================
--- ksycoca.cpp	(revision 797491)
+++ ksycoca.cpp	(working copy)
@@ -494,12 +494,16 @@
 
 QString KSycoca::absoluteFilePath(DatabaseType type)
 {
+   QString fileName = QCryptographicHash::hash ( 
+        KGlobal::dirs()->kfsstnd_prefixes().toLatin1(), QCryptographicHash::Md5).toHex() 
+        + QLatin1Char('-') + KSYCOCA_FILENAME;
+   
    if (type == GlobalDatabase)
-      return KStandardDirs::locate("services", KSYCOCA_FILENAME);
+      return KStandardDirs::locate("services", fileName);
 
    QByteArray ksycoca_env = getenv("KDESYCOCA");
    if (ksycoca_env.isEmpty())
-      return KGlobal::dirs()->saveLocation("cache") + KSYCOCA_FILENAME;
+      return KGlobal::dirs()->saveLocation("cache") + fileName;
    else
       return QFile::decodeName(ksycoca_env);
 }
