silverstripe-framework/tests/php/Model/ModelDataTest/NotCached.php

18 lines
302 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\Model\Tests\ModelDataTest;
2016-10-14 03:30:05 +02:00
use SilverStripe\Dev\TestOnly;
use SilverStripe\Model\ModelData;
2016-10-14 03:30:05 +02:00
class NotCached extends ModelData implements TestOnly
2016-10-14 03:30:05 +02:00
{
public $Test;
2016-10-14 03:30:05 +02:00
protected function objCacheGet($key)
{
// Disable caching
return null;
}
2016-10-14 03:30:05 +02:00
}