Proxy fix

This commit is contained in:
Daniil Gentili 2017-10-07 22:18:21 +03:00
parent 5c547f390b
commit d086aad5ff

View File

@ -28,6 +28,10 @@ class Serialization
*/ */
public static function serialize($filename, $instance, $force = false) public static function serialize($filename, $instance, $force = false)
{ {
if (isset($instance->API->setdem) && $instance->API->setdem) {
$instance->API->setdem = false;
$instance->API->__construct($instance->API->settings);
}
if (!file_exists($lock = $filename.'.lock')) { if (!file_exists($lock = $filename.'.lock')) {
touch($lock); touch($lock);
clearstatcache(); clearstatcache();