aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm/acm_file.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-08-22 21:26:06 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-08-22 21:26:06 +0000
commit1d42d1b9817050974c8bc8b91bc34a6c3cfbfef8 (patch)
treea5788f8c1db67b7ea6cfb870b1400e28df15ee3a /phpBB/includes/acm/acm_file.php
parentb0afc8e6320598734ae20e664be9f840ca501f91 (diff)
downloadforums-1d42d1b9817050974c8bc8b91bc34a6c3cfbfef8.tar
forums-1d42d1b9817050974c8bc8b91bc34a6c3cfbfef8.tar.gz
forums-1d42d1b9817050974c8bc8b91bc34a6c3cfbfef8.tar.bz2
forums-1d42d1b9817050974c8bc8b91bc34a6c3cfbfef8.tar.xz
forums-1d42d1b9817050974c8bc8b91bc34a6c3cfbfef8.zip
some updates. Also adjusted the utf tools and normalizer more to our coding guidelines.
git-svn-id: file:///svn/phpbb/trunk@6312 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acm/acm_file.php')
-rw-r--r--phpBB/includes/acm/acm_file.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php
index 175ef0ad81..f79a94c987 100644
--- a/phpBB/includes/acm/acm_file.php
+++ b/phpBB/includes/acm/acm_file.php
@@ -176,6 +176,32 @@ class acm
}
/**
+ * Purge cache data
+ */
+ function purge()
+ {
+ // Purge sql data
+ $dir = opendir($this->cache_dir);
+ while (($entry = readdir($dir)) !== false)
+ {
+ if (strpos($entry, 'sql_') !== 0 && strpos($entry, 'data_') !== 0 && strpos($entry, 'ctpl_') !== 0 && strpos($entry, 'tpl_') !== 0)
+ {
+ continue;
+ }
+
+ @unlink($this->cache_dir . $entry);
+ }
+ @closedir($dir);
+
+ unset($this->vars);
+ unset($this->var_expires);
+ unset($this->sql_rowset);
+ unset($this->sql_row_pointer);
+
+ $this->is_modified = false;
+ }
+
+ /**
* Destroy cache data
*/
function destroy($var_name, $table = '')