* Introduced a new system for localisation caching. The system is based around fast...
[lhc/web/wiklou.git] / includes / CacheDependency.php
index b050c46..8bd0be4 100644 (file)
@@ -134,6 +134,11 @@ class FileDependency extends CacheDependency {
                $this->timestamp = $timestamp;
        }
 
+       function __sleep() {
+               $this->loadDependencyValues();
+               return array( 'filename', 'timestamp' );
+       }
+
        function loadDependencyValues() {
                if ( is_null( $this->timestamp ) ) {
                        if ( !file_exists( $this->filename ) ) {