// Skip here if already cached
if ($this->listCached === FALSE) {
// Writes the cache file of our list away
- $cacheContent = serialize($this->classes);
+ $cacheContent = json_encode($this->classes);
file_put_contents($this->listCacheFQFN, $cacheContent);
} // END - if
} // END - if
// IS the cache there?
- if (file_exists($this->listCacheFQFN)) {
+ if (BaseFrameworkSystem::isReadableFile($this->listCacheFQFN)) {
// Get content
$cacheContent = file_get_contents($this->listCacheFQFN);
// And convert it
- $this->classes = unserialize($cacheContent);
+ $this->classes = json_decode($cacheContent);
// List has been restored from cache!
$this->listCached = TRUE;
} // END - if
// Does the class cache exist?
- if (file_exists($this->classCacheFQFN)) {
+ if (BaseFrameworkSystem::isReadableFile($this->listCacheFQFN)) {
// Then include it
require($this->classCacheFQFN);