Skip to content

Commit

Permalink
fix: add cache clearing tools (#3896)
Browse files Browse the repository at this point in the history
Forgot to add these in #3867
  • Loading branch information
dvikan authored Jan 17, 2024
1 parent 191e5b0 commit 6eaf0ea
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ data/
*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
Expand Down
14 changes: 14 additions & 0 deletions bin/cache-clear
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env php
<?php

/**
* Remove all items from the cache
*/

require __DIR__ . '/../lib/bootstrap.php';

$rssBridge = new RssBridge();

$cache = RssBridge::getCache();

$cache->clear();
14 changes: 14 additions & 0 deletions bin/cache-prune
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env php
<?php

/**
* Remove all expired items from the cache
*/

require __DIR__ . '/../lib/bootstrap.php';

$rssBridge = new RssBridge();

$cache = RssBridge::getCache();

$cache->prune();

0 comments on commit 6eaf0ea

Please sign in to comment.