File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
bundle/RemoteMedia/Provider/Cloudinary/Gateway/Cache Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ public function listFolders()
205
205
$ cacheItem ->set ($ list );
206
206
$ cacheItem ->expiresAfter ($ this ->ttl );
207
207
$ cacheItem ->tag ($ this ->getCacheTags (self ::FOLDER_LIST ));
208
+ $ this ->cache ->save ($ cacheItem );
208
209
209
210
return $ list ;
210
211
}
@@ -229,6 +230,7 @@ public function listSubFolders(string $parentFolder)
229
230
$ cacheItem ->set ($ list );
230
231
$ cacheItem ->expiresAfter ($ this ->ttl );
231
232
$ cacheItem ->tag ($ this ->getCacheTags (self ::FOLDER_LIST ));
233
+ $ this ->cache ->save ($ cacheItem );
232
234
233
235
return $ list ;
234
236
}
@@ -273,6 +275,7 @@ public function countResourcesInFolder($folder)
273
275
$ cacheItem ->set ($ count );
274
276
$ cacheItem ->expiresAfter ($ this ->ttl );
275
277
$ cacheItem ->tag ($ this ->getCacheTags (self ::FOLDER_COUNT ));
278
+ $ this ->cache ->save ($ cacheItem );
276
279
277
280
return $ count ;
278
281
}
@@ -300,6 +303,7 @@ public function get($id, $type)
300
303
$ cacheItem ->set ($ value );
301
304
$ cacheItem ->expiresAfter ($ this ->ttl );
302
305
$ cacheItem ->tag ($ this ->getItemCacheTags ($ id ));
306
+ $ this ->cache ->save ($ cacheItem );
303
307
304
308
return $ value ;
305
309
}
@@ -324,6 +328,7 @@ public function listTags()
324
328
$ cacheItem ->set ($ list );
325
329
$ cacheItem ->expiresAfter ($ this ->ttl );
326
330
$ cacheItem ->tag ($ this ->getCacheTags (self ::TAG_LIST ));
331
+ $ this ->cache ->save ($ cacheItem );
327
332
328
333
return $ list ;
329
334
}
You can’t perform that action at this time.
0 commit comments