dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Introduced a new system for localisation caching. The system is based around fast...
[lhc/web/wiklou.git]
/
includes
/
CacheDependency.php
diff --git
a/includes/CacheDependency.php
b/includes/CacheDependency.php
index
b050c46
..
8bd0be4
100644
(file)
--- a/
includes/CacheDependency.php
+++ b/
includes/CacheDependency.php
@@
-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 ) ) {