Commit bcffed7 1 parent fa8ea41 commit bcffed7 Copy full SHA for bcffed7
File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ function get_courses() {
97
97
98
98
function run_prune_cache () {
99
99
db_delete_cache ();
100
+ `rm -fr .cache `;
100
101
}
101
102
102
103
// Update student's group information
Original file line number Diff line number Diff line change 12
12
use Http \Discovery \Psr18ClientDiscovery ;
13
13
use Psr \Http \Message \RequestInterface ;
14
14
use Psr \Http \Message \ResponseInterface ;
15
- use Symfony \Component \Cache \Adapter \PdoAdapter ;
15
+ use Symfony \Component \Cache \Adapter \FilesystemAdapter ;
16
16
17
17
class MyJournal implements \Http \Client \Common \Plugin \Journal {
18
18
public function addSuccess (RequestInterface $ request ,
@@ -65,7 +65,8 @@ public function clearHeaders(): void {
65
65
public function getHttpClient (): HttpMethodsClientInterface {
66
66
if (!$ this ->client ) {
67
67
$ stream = Psr17FactoryDiscovery::findStreamFactory ();
68
- $ pool = new PdoAdapter (DB_DSN , 'cache ' , $ this ->timeout );
68
+ //$pool = new PdoAdapter(DB_DSN, 'cache', $this->timeout);
69
+ $ pool = new FilesystemAdapter ('github ' , $ this ->timeout , '.cache ' );
69
70
$ config = ['respect_response_cache_directives ' => [],
70
71
'default_ttl ' => $ this ->timeout ];
71
72
$ plugins = $ this ->plugins ;
You can’t perform that action at this time.
0 commit comments