Author Topic: Clear Cache geht nicht  (Read 2543 times)

0 Members and 1 Guest are viewing this topic.

Offline geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Clear Cache geht nicht
« on: October 12, 2009, 07:42:29 AM »
Hallo.

Die SuFu hat nichts gebracht.

Wenn ich im ACP Clear Cache klicke, bekomme ich:

Code: [Select]
Warning: opendir(/geoheiIM/cache) [function.opendir]: failed to open dir: No such file or directory in /geoheiIM/includes/cache_utils.php on line 162
Cache directory cleared
Clear Cache
Do you want to clear the cache directory ()?

Hier die besagte Zeile:

Code: [Select]
function clear_cache() {
  global $cache_enable, $cache_lifetime, $cache_path;

  $handle = opendir($cache_path);

  while ($file = @readdir($handle)) {
    if (is_dir($file) || $file{0} == ".") {
      continue;
    }

    unlink($cache_path . '/' . $file);

Directory "cache" permissions sind auf 777 gesetzt!

... later ...

Ich habe jetzt herausgefunden, dass wenn ich den absoluten path in config.php benutze, es funktioniert.
Wenn ich './cache' als relativen path angebe funktioniert es nicht. Was soll ich als relativen path angeben?

[config.php] $cache_path = '/home/geo/geo.xx/gallery/cache';
Funktioniert!

DOCUMENT_ROOT: /home/geo/geo.xx
[config.php] $cache_path = './gallery/cache';
Funktioniert nicht!

Wo ist der Fehler?

Gruß,
« Last Edit: October 14, 2009, 07:51:54 AM by geohei »